mamairaja
06-01-2010 05:04:50
OGRE3DBody* body = mRenderSystem->createBody(new NxOgre::Capsule(1.5,7), position, node, PhysicsDescription);
body ->getType();
returns a large integer. Is this unique for a body?
mamairaja
06-01-2010 05:04:50
OGRE3DBody* body = mRenderSystem->createBody(new NxOgre::Capsule(1.5,7), position, node, PhysicsDescription);
spacegaier
08-01-2010 08:28:11
enum RigidBodyType
{
RigidBodyType_Dynamic = -1, //!< RigidBody is likely to move.
RigidBodyType_Kinematic = -2, //!< RigidBody is likely to move, but it should not have the usual physics properties.
RigidBodyType_Geometry = -3, //!< RigidBody will never move.
RigidBodyType_Volume = -4, //!< RigidBody will never move, and others can pass through it.
RigidBodyType_Unknown = -5, //!< Unknown Type.
RigidBodyType_DynamicInherited = 0 //!< Non-NxOgre class that is dynamic.
};
/** \brief This enum just stores an integer identifier for the OGRE3D classes. As some of these classes are
extensions of NxOgre ones. It would be useful to use the same allocator as NxOgre does. For
that, we need to define these classes we want to use as integers to use them in a PointerClass.
*/
enum
{
_OGRE3DRenderSystem = ::NxOgre::Classes::RENDERSYSTEMS_CLASSES_BEGIN + 100,
_OGRE3DBody,
_OGRE3DBodyPrototype,
_OGRE3DRenderable,
_OGRE3DPointRenderable,
_OGRE3DKinematicBody,
};
mamairaja
08-01-2010 17:31:05
betajaen
08-01-2010 18:03:43
mamairaja
09-01-2010 16:58:01
betajaen
09-01-2010 18:25:58