- #1
jschieck
- 2
- 0
i'm having trouble creating a arc for check for collision similar to a grenade launcher type weapon and am not very good at math :/
i have the player position and the target position, now i just need to check every so often (let's say .1 units) along the outside of my ellipse to see if my raycast has struck geometry.
so i have the 2 vector3's of position, and want the ellipse to scale on the Y axis based on the distance between them. some of it i can figure out but just don't know math well enough.
can someone cast some light on the formula i might use? basically just looking for an array of all the points on an ellipse every .1 units
i have the player position and the target position, now i just need to check every so often (let's say .1 units) along the outside of my ellipse to see if my raycast has struck geometry.
so i have the 2 vector3's of position, and want the ellipse to scale on the Y axis based on the distance between them. some of it i can figure out but just don't know math well enough.
can someone cast some light on the formula i might use? basically just looking for an array of all the points on an ellipse every .1 units