Logo Search packages:      
Sourcecode: blender version File versions

btCollisionObject Class Reference

#include <btCollisionObject.h>

Inheritance diagram for btCollisionObject:

btRigidBody

List of all members.


Detailed Description

btCollisionObject can be used to manage collision detection objects. btCollisionObject maintains all information that is needed for a collision detection: Shape, Transform and AABB proxy. They can be added to the btCollisionWorld.

Definition at line 37 of file btCollisionObject.h.


Public Types

enum  CollisionFlags { CF_STATIC_OBJECT = 1, CF_KINEMATIC_OBJECT = 2, CF_NO_CONTACT_RESPONSE = 4, CF_CUSTOM_MATERIAL_CALLBACK = 8 }

Public Member Functions

void activate (bool forceActivation=false)
void forceActivationState (int newState)
int getActivationState () const
const btBroadphaseProxygetBroadphaseHandle () const
btBroadphaseProxygetBroadphaseHandle ()
float getCcdSquareMotionThreshold () const
float getCcdSweptSphereRadius () const
 Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::.
const int getCollisionFlags () const
btCollisionShapegetCollisionShape ()
const btCollisionShapegetCollisionShape () const
float getDeactivationTime () const
float getFriction () const
const float getHitFraction () const
const void * getInternalOwner () const
void * getInternalOwner ()
 reserved for Bullet internal usage
const btVector3getInterpolationAngularVelocity () const
const btVector3getInterpolationLinearVelocity () const
btTransformgetInterpolationWorldTransform ()
const btTransformgetInterpolationWorldTransform () const
const int getIslandTag () const
float getRestitution () const
void * getUserPointer () const
 users can point to their objects, userPointer is not used by Bullet
const btTransformgetWorldTransform () const
btTransformgetWorldTransform ()
bool hasContactResponse () const
bool isActive () const
bool isKinematicObject () const
bool isStaticObject () const
bool isStaticOrKinematicObject () const
bool mergesSimulationIslands () const
void setActivationState (int newState)
void setBroadphaseHandle (btBroadphaseProxy *handle)
void setCcdSquareMotionThreshold (float ccdSquareMotionThreshold)
 Don't do continuous collision detection if square motion (in one step) is less then m_ccdSquareMotionThreshold.
void setCcdSweptSphereRadius (float radius)
 Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::.
void setCollisionFlags (int flags)
void setCollisionShape (btCollisionShape *collisionShape)
void setDeactivationTime (float time)
void setFriction (float frict)
void setHitFraction (float hitFraction)
void setInterpolationWorldTransform (const btTransform &trans)
void setIslandTag (int tag)
void setRestitution (float rest)
void setUserPointer (void *userPointer)
 users can point to their objects, userPointer is not used by Bullet
void setWorldTransform (const btTransform &worldTrans)

Protected Attributes

int m_activationState1
btBroadphaseProxym_broadphaseHandle
float m_ccdSquareMotionThreshold
 Don't do continuous collision detection if square motion (in one step) is less then m_ccdSquareMotionThreshold.
float m_ccdSweptSphereRadius
 Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::.
int m_collisionFlags
btCollisionShapem_collisionShape
float m_deactivationTime
btScalar m_friction
float m_hitFraction
 time of impact calculation
void * m_internalOwner
 m_internalOwner is reserved to point to Bullet's btRigidBody. Don't use this, use m_userObjectPointer instead.
btVector3 m_interpolationAngularVelocity
btVector3 m_interpolationLinearVelocity
btTransform m_interpolationWorldTransform
int m_islandTag1
btScalar m_restitution
void * m_userObjectPointer
 users can point to their objects, m_userPointer is not used by Bullet, see setUserPointer/getUserPointer
btTransform m_worldTransform

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index