kaneyxt
20-05-2009 14:28:06
I try to create kinematic actor by flag RigidBodyType_Kinematic, but seems this flag does not work. The actor is still dynamic, it will fall down after I create it in the sky.
My code is as follows:
Anybody has the same problem with me? Or do we have another way to create kinematic actor?
My code is as follows:
NxOgre_Namespace::RigidBodyDescription rbDesc;
rbDesc.mType = NxOgre_Namespace::Enums::RigidBodyType_Kinematic;
OGRE3DBody* testBody = mRenderSystem->createBody(new NxOgre_Namespace::Box(1.0), NxOgre_Namespace::Real3(0, 50, 0), "cube.1m.mesh", rbDesc);
Anybody has the same problem with me? Or do we have another way to create kinematic actor?