moving a 3d object towards another

A08a934b9f71c4e095b49c0bbbd5630e
0
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.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jan 10, 2010 at 19:03