russ
19-05-2011 09:42:24
Hi All,
I have an Entity and an OgreBulletCollisions::Object that has been generated by a converted trimesh of the Entity. It's currently working fine for raycasting if the Entity doesn't move.
However, If I change the position or orientation of that Entity's ParentSceneNode, the position of the OgreBulletCollisions::Object stays the same, so my collision trimesh is not aligned with the original entity any more.
Is there some "correct" way to set this sort of synchronization up? I tried adding the Object to the ParentSceneNode of the Object, but that didn't seem to work.
Thanks!
Russ
I have an Entity and an OgreBulletCollisions::Object that has been generated by a converted trimesh of the Entity. It's currently working fine for raycasting if the Entity doesn't move.
However, If I change the position or orientation of that Entity's ParentSceneNode, the position of the OgreBulletCollisions::Object stays the same, so my collision trimesh is not aligned with the original entity any more.
Is there some "correct" way to set this sort of synchronization up? I tried adding the Object to the ParentSceneNode of the Object, but that didn't seem to work.
Thanks!
Russ