Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualMedo3337

Posted 31 October 2012 - 01:58 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 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?

#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?

PARTNERS