I want to throw a ball with normal direccion to the camera . how can i get this vector ?
i've tried with camera->getTarget() but i don't know why the ball doesn't take the direction i want
if some one wants , i paste some code
camera normal vector ?
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
Code: Select all
vector3df NormalizedCameraZAxis = (Camera->getTarget() - Camera->getPosition()).normalize();
If you don't have anything nice to say, don't say anything at all.
yes , sorry by my english . thank you Luben , this is the code i needed.Luben wrote:Code: Select all
vector3df NormalizedCameraZAxis = (Camera->getTarget() - Camera->getPosition()).normalize();