Okay, I think I have accomplished a good part, now I am looking to make the ball move forward according to where the camera is looking at, I am also looking to update the camera position to make it follow the ball all the time (exactly as you see in the video).
How do I update body->setLinearVelocity() to make the ball move according to where the camera is look at?
How do I update the camera position x, y, z to make it following the ball? which values I should be setting during the rendering process?
Show differencesHistory of post edits
#1Medo3337
Posted 31 October 2012 - 01:54 PM
Okay, I think I have accomplished a good part, now I am looking to make the ball move forward according to where the camera is looking at, I am also looking to update the camera position to make it look at the ball all the time (exactly as you see in the video),
How do I update body->setLinearVelocity() to make the ball move according to where the camera is look at?
How do I update the camera position x, y, z to make it following the ball? which values I should be setting during rendering process?
How do I update body->setLinearVelocity() to make the ball move according to where the camera is look at?
How do I update the camera position x, y, z to make it following the ball? which values I should be setting during rendering process?