Calculating the angle of impact
by David Boyd · in Torque Game Engine · 02/09/2008 (6:33 am) · 1 replies
Hey folks,
Could anyone recommend a method for calculating the angle at which a project hits an object, ideally to the face on the object that it hits. I've tried a couple of things but haven't had much success.
Any suggestions would be greatly appreciated!
Could anyone recommend a method for calculating the angle at which a project hits an object, ideally to the face on the object that it hits. I've tried a couple of things but haven't had much success.
Any suggestions would be greatly appreciated!
About the author
Torque 3D Owner Matthew Jessick
Note that some objects use simplified collision surfaces (players and vehicles, for example), so what your projectile hits isn't the same as the polygons you see. Check out various "melee" resources to see what you can do in modifying that.