Kinematic Body Translation

Spr

08-10-2009 12:38:50

Hello,
I am relatively new to NxOgre and Ogre. I would appreciate if someone can give me some information on translating a kinematic body, i.e. what would be the best way to achieve it? I am currently trying to achieve this using setGlobalPosition() function, but this does not translate the body( I understand that). I have tried to search through the archives, but could not find any information.

Thanks
SPR

spacegaier

08-10-2009 12:57:48

moveGlobalPosition() should be used for that. setGlobalPosition would just "teleport" it to the desired position, so no collisions would be computed, where as the moveGlobalPosition actually moves it there step by step and would let collisions happen.

Spr

08-10-2009 13:06:54

Thanks Spacegaier, I was able to get the translation working.