Blender  V3.3
Classes | Functions | Variables
btCylinderShape.h File Reference
#include "btBoxShape.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
#include "LinearMath/btVector3.h"

Go to the source code of this file.

Classes

class  btCylinderShapeX
 
class  btCylinderShapeZ
 
struct  btCylinderShapeData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
btVector3 getHalfExtentsWithMargin () const
 
const btVector3getHalfExtentsWithoutMargin () const
 
 btCylinderShape (const btVector3 &halfExtents)
 
void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t. More...
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface. More...
 
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface More...
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
virtual void setMargin (btScalar collisionMargin)
 
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
 
int getUpAxis () const
 
virtual btVector3 getAnisotropicRollingFrictionDirection () const
 
virtual btScalar getRadius () const
 
virtual void setLocalScaling (const btVector3 &scaling)
 in case we receive negative scaling More...
 
virtual const char * getName () const
 
virtual int calculateSerializeBufferSize () const
 
virtual const char * serialize (void *dataBuffer, btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure) More...
 

Variables

btCylinderShape __pad0__
 The btCylinderShape class implements a cylinder shape primitive, centered around the origin. Its central axis aligned with the Y axis. btCylinderShapeX is aligned with the X axis and btCylinderShapeZ around the Z axis. More...
 

Function Documentation

◆ batchedUnitVectorGetSupportingVertexWithoutMargin()

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 vectors,
btVector3 supportVerticesOut,
int  numVectors 
) const
virtual

Definition at line 71 of file btBox2dShape.h.

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btCylinderShape()

btCylinderShape::btCylinderShape ( const btVector3 halfExtents)

◆ calculateLocalInertia()

virtual void calculateLocalInertia ( btScalar  mass,
btVector3 inertia 
) const
virtual

CollisionShape Interface.

Definition at line 54 of file btConeShape.h.

◆ calculateSerializeBufferSize()

virtual int calculateSerializeBufferSize ( ) const
virtual

◆ getAabb()

void getAabb ( const btTransform t,
btVector3 aabbMin,
btVector3 aabbMax 
) const

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

Definition at line 54 of file btCapsuleShape.h.

◆ getAnisotropicRollingFrictionDirection()

virtual btVector3 getAnisotropicRollingFrictionDirection ( ) const
virtual

Definition at line 94 of file btCylinderShape.h.

References btVector3, and getUpAxis().

◆ getHalfExtentsWithMargin()

btVector3 getHalfExtentsWithMargin ( ) const

◆ getHalfExtentsWithoutMargin()

const btVector3& getHalfExtentsWithoutMargin ( ) const

Definition at line 42 of file btCylinderShape.h.

References m_implicitShapeDimensions.

Referenced by getHalfExtentsWithMargin().

◆ getName()

virtual const char* getName ( ) const
virtual

Definition at line 118 of file btCylinderShape.h.

◆ getRadius()

virtual btScalar getRadius ( ) const
virtual

Definition at line 101 of file btCylinderShape.h.

References getHalfExtentsWithMargin().

◆ getUpAxis()

int getUpAxis ( ) const

Definition at line 89 of file btCylinderShape.h.

References m_upAxis.

Referenced by getAnisotropicRollingFrictionDirection().

◆ localGetSupportingVertex()

virtual btVector3 localGetSupportingVertex ( const btVector3 vec) const
virtual

◆ localGetSupportingVertexWithoutMargin()

virtual btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 vec) const
virtual

btConvexShape Interface

Definition at line 62 of file btBox2dShape.h.

Referenced by localGetSupportingVertex().

◆ serialize()

virtual const char* serialize ( void dataBuffer,
btSerializer serializer 
) const
virtual

fills the dataBuffer and returns the struct name (and 0 on failure)

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 scaling)
virtual

in case we receive negative scaling

Definition at line 106 of file btCylinderShape.h.

References btVector3, getMargin(), m_implicitShapeDimensions, and m_localScaling.

◆ setMargin()

virtual void setMargin ( btScalar  collisionMargin)
virtual

Definition at line 57 of file btCylinderShape.h.

References btVector3, getMargin(), and m_implicitShapeDimensions.

Variable Documentation

◆ __pad0__

btCylinderShape __pad0__

The btCylinderShape class implements a cylinder shape primitive, centered around the origin. Its central axis aligned with the Y axis. btCylinderShapeX is aligned with the X axis and btCylinderShapeZ around the Z axis.

Definition at line 25 of file btCylinderShape.h.