Kinematic

Thrakbad

28-03-2010 13:04:36

I'm trying to implement immovable objects in my scene using kynematics.
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?

hitwangxiaolu

28-10-2010 14:51:03

等待回答。。。

betajaen

28-10-2010 15:47:32

Please don't bump old posts. If you have a question just create a new one.