Quaternion Cameras and projectile vectors
Posted
by Tom J Nowell
on Stack Overflow
See other posts from Stack Overflow
or by Tom J Nowell
Published on 2010-04-15T14:25:23Z
Indexed on
2010/04/15
14:33 UTC
Read the original article
Hit count: 198
In our software we have a camera based on mouse movement, and a quarternion at its heart.
We want to fire projectiles from this position, which we can do, however we want to use the camera to aim. The projectile takes a vector which it will add to its position each game frame.
How do we acquire such a vector from a given camera/quaternion?
© Stack Overflow or respective owner