Thrakbad
28-03-2010 13:04:36
I'm trying to implement immovable objects in my scene using kynematics.
However when my player collides with the object, it gets pushed around just like any other Actor. I tried also setting desc.mBodyFlags |= NxOgre::Enums::BodyFlags_Frozen; but then my player just moves through the object without a collision. Is this a bug or am I doing something wrong here?
OGRE3DKinematicBody* body;
OGRE3DRigidBodyDescription desc;
desc.mBodyFlags |= NxOgre::Enums::BodyFlags_DisableGravity;
desc.mType = NxOgre::Enums::RigidBodyType_KinematicBody;
body = mRenderSystem->createKinematicBody(NxOgre::ConvexDescription(mesh), pos, meshName, desc);
However when my player collides with the object, it gets pushed around just like any other Actor. I tried also setting desc.mBodyFlags |= NxOgre::Enums::BodyFlags_Frozen; but then my player just moves through the object without a collision. Is this a bug or am I doing something wrong here?