CheeseSucker
21-04-2010 10:50:52
It appears that bulletD does not inherit the attributes from bulletC. This e.g. means that it is impossible to set a debug drawer on a DynamicsWorld.
Is there a way to work around this?
Is there a way to work around this?
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.
>>> import ogre.renderer.OGRE
>>> import ogre.physics.bullet
>>> import ogre.physics.bullet as bullet
>>> import ogre.physics.OgreBulletC as bulletC
>>> import ogre.physics.OgreBulletD as bulletD
>>> dir(bulletC.CollisionsWorld)
['BulletCollisionWorld', 'SceneManager', 'ShowDebugContactPoints', 'ShowDebugShapes', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__instance_size__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'addObject', 'discreteCollide', 'findObject', 'getBulletCollisionWorld', 'getDebugContactPoints', 'getDebugDrawer', 'getSceneManager', 'getShowDebugContactPoints', 'getShowDebugShapes', 'isObjectregistered', 'launchRay', 'removeObject', 'setDebugContactPoints', 'setDebugDrawer', 'setShowDebugContactPoints', 'setShowDebugShapes']
>>> dir(bulletD.DynamicsWorld)
['BulletDynamicsWorld', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__instance_size__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'addConstraint', 'addRigidBody', 'addVehicle', 'getBulletDynamicsWorld', 'isConstraintRegistered', 'removeConstraint', 'stepSimulation']
>>> dir(bulletC.Object)
['AnimableValueNames', 'Attached', 'BoundingBox', 'BoundingRadius', 'BulletCollisionWorld', 'BulletObject', 'CastShadows', 'CollisionWorld', 'DebugDisplayEnabled', 'DebugShape', 'InScene', 'LightCapBounds', 'Listener', 'MovableType', 'Name', 'ParentNode', 'ParentSceneNode', 'QueryFlags', 'RenderQueueGroup', 'RenderingDistance', 'Shape', 'TypeFlags', 'TypeID', 'TypeName', 'UserAny', 'VisibilityFlags', 'Visible', 'WorldOrientation', 'WorldPosition', '__class__', '__delattr__','__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__instance_size__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_getAnimableValueNames', '_getCreator', '_getLightList', '_getManager', '_getParentNodeFullTransform', '_notifyAttached', '_notifyCreator', '_notifyCurrentCamera', '_notifyManager', '_notifyMoved', '_updateRenderQueue', 'addQueryFlags', 'addVisibilityFlags', 'animableValueNames', 'attached', 'castShadows', 'createAnimableDictionary', 'createAnimableValue', 'debugDisplayEnabled', 'detatchFromParent', 'extrudeBounds', 'extrudeVertices', 'generateShadowVolume', 'getAnimableDictionaryName', 'getAnimableValueNames', 'getBoundingBox', 'getBoundingRadius', 'getBulletCollisionWorld', 'getBulletObject', 'getCastShadows', 'getCollisionWorld', 'getDarkCapBounds', 'getDebugShape', 'getDefaultQueryFlags', 'getDefaultVisibilityFlags', 'getEdgeList', 'getExtrusionDistance', 'getLightCapBounds', 'getListener', 'getMovableType', 'getName', 'getParentNode', 'getParentSceneNode','getPointExtrusionDistance', 'getQueryFlags', 'getReceivesShadows', 'getRenderQueueGroup', 'getRenderingDistance', 'getRootNode', 'getShadowVolumeRenderableIterator', 'getShape', 'getTypeFlags', 'getTypeID', 'getTypeName', 'getUserAny', 'getUserObject', 'getVisibilityFlags', 'getVisible', 'getWorldBoundingBox', 'getWorldBoundingSphere', 'getWorldOrientation', 'getWorldPosition', 'hasEdgeList', 'inScene', 'initialiseAnimableDictionary', 'isAttached', 'isDebugDisplayEnabled', 'isInScene', 'isVisible', 'lightCapBounds', 'mMovableType', 'name', 'parentNode', 'parentSceneNode', 'queryFlags', 'queryLights', 'removeQueryFlags', 'removeVisibilityFlags', 'renderQueueGroup', 'renderingDistance', 'setCastShadows', 'setDebugDisplayEnabled', 'setDefaultQueryFlags', 'setDefaultVisibilityFlags', 'setListener', 'setOrientation', 'setPosition', 'setQueryFlags', 'setRenderQueueGroup', 'setRenderingDistance', 'setShape', 'setTransform', 'setUserAny', 'setUserObject', 'setVisibilityFlags', 'setVisible', 'showDebugShape', 'typeFlags', 'typeID', 'typeName', 'updateEdgeListLightFacing', 'userAny', 'visibilityFlags', 'visible', 'visitRenderables']
>>> dir(bulletD.RigidBody)
['BulletDynamicsWorld', 'BulletRigidBody', 'CenterOfMassOrientation', 'CenterOfMassPosition', 'CenterOfMassTransform', 'KinematicObject', 'SceneNode', 'StaticObject', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__instance_size__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'applyForce', 'applyImpulse', 'disableDeactivation', 'enableActiveState', 'forceActivationState', 'getBulletDynamicsWorld', 'getBulletRigidBody', 'getCenterOfMassOrientation', 'getCenterOfMassPivot','getCenterOfMassPosition', 'getCenterOfMassTransform', 'getDynamicsWorld', 'getLinearVelocity', 'getSceneNode', 'isKinematicObject', 'isStaticObject', 'setDamping', 'setDeactivationTime', 'setKinematicObject', 'setLinearVelocity', 'setShape', 'setStaticShape']
>>>