How can I track the newest position of the body

kjs335

17-04-2006 12:39:25

I'm trying to make camera follow an object which has a OgreNewt::Body to make side scroller.
But when the object moves, the object looks choppy in the view of the camera.
It looks smooth when camera is not positioned near an object though.
I fixed it somehow on my other one but I can't figure out how.

aravindh007

17-04-2006 13:32:15

Hi,
try creating a camera and try to attachobject to attach the camera to the corresponding node i.e object or character inside the game , the camera just takes the position of the node and follows it.
thats it
:)

kjs335

21-04-2006 11:59:49

I've created 2 scenenodes and I assigned the body and entity to one of them then I attached the one to the other scenenode.
But then, it crashes after exiting.
Has anyone experienced this?
It seems like it doesn't crash if I don't add any entity.