moving a 3d object towards another

newInTown 101 Jan 10, 2010 at 12:58

Hello everyone, I’m new here and new to game development.
At the moment i’m trying to (re)learn some math related to games and I could use some explanations on how to achieve the following:

Say you have 2 objects in 3d space. Object A is located, for example, at position(300, 100, 300) and object B at position(35, -225, -200). My question is how would make object B move towards object A? Also how would you make object B correctly rotate to object A so that it always faces or looks at object A?

Thanks :)

1 Reply

Please log in or register to post a reply.

Reedbeta 167 Jan 10, 2010 at 19:03