swe_suffer
New Member
- Reaction score
- 20
[SOLVED]War3 3D maths - "towards"
I have an issue; I dont know how to get a 3D point towards another, let me explain a litle bit. Note that the example isn't War3 accommodated (is this the right word? Im from Sweden ).
Lets say we have a "vector" variable called 3D_point1, and another called 3D_point2. What I want to do is to set 3D_point3 to a location between 3D_point1 and 3D_point2, using a real as the amount of "dots" (or whatever it is) away from 3D_point1, similar to the function "PolarProjectionBJ", but in 3D.
Hope you understand what I mean . I have attached a picture in the bottom of the post.
Now i wonder, how do I write the math function?
Anyone in the mood to help (or write me the function )?
Edit: Ops, this maybe should be in the JASS forum :S
[PICTURE REMOVED]
I have an issue; I dont know how to get a 3D point towards another, let me explain a litle bit. Note that the example isn't War3 accommodated (is this the right word? Im from Sweden ).
Lets say we have a "vector" variable called 3D_point1, and another called 3D_point2. What I want to do is to set 3D_point3 to a location between 3D_point1 and 3D_point2, using a real as the amount of "dots" (or whatever it is) away from 3D_point1, similar to the function "PolarProjectionBJ", but in 3D.
Hope you understand what I mean . I have attached a picture in the bottom of the post.
Now i wonder, how do I write the math function?
Anyone in the mood to help (or write me the function )?
Edit: Ops, this maybe should be in the JASS forum :S
[PICTURE REMOVED]