Blender  V3.3
Classes | Functions | Variables
btConeShape.h File Reference
#include "btConvexInternalShape.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"

Go to the source code of this file.

Classes

class  btConeShapeX
 btConeShape implements a Cone shape, around the X axis More...
 
class  btConeShapeZ
 btConeShapeZ implements a Cone shape, around the Z axis More...
 
struct  btConeShapeData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 

Functions

btVector3 coneLocalSupport (const btVector3 &v) const
 
 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btConeShape (btScalar radius, btScalar height)
 
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
 
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface More...
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
btScalar getRadius () const
 
btScalar getHeight () const
 
void setRadius (const btScalar radius)
 
void setHeight (const btScalar height)
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface. More...
 
virtual const char * getName () const
 
void setConeUpIndex (int upIndex)
 choose upAxis index More...
 
int getConeUpIndex () const
 
virtual btVector3 getAnisotropicRollingFrictionDirection () const
 
virtual void setLocalScaling (const btVector3 &scaling)
 
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

btConeShape __pad0__
 The btConeShape implements a cone shape primitive, centered around the origin and aligned with the Y axis. The btConeShapeX is aligned around the X axis and btConeShapeZ around the Z axis. More...
 
btScalar m_radius
 
btScalar m_height
 
int m_coneIndices [3]
 

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 ( )

◆ btConeShape()

btConeShape::btConeShape ( btScalar  radius,
btScalar  height 
)

◆ 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

◆ coneLocalSupport()

btVector3 btConeShape::coneLocalSupport ( const btVector3 v) const

Definition at line 67 of file btConeShape.cpp.

References btSqrt(), btVector3, m_coneIndices, m_height, m_radius, SIMD_EPSILON, and v.

◆ getAnisotropicRollingFrictionDirection()

virtual btVector3 getAnisotropicRollingFrictionDirection ( ) const
virtual

Definition at line 91 of file btConeShape.h.

References btVector3.

◆ getConeUpIndex()

int getConeUpIndex ( ) const

Definition at line 86 of file btConeShape.h.

References m_coneIndices.

◆ getHeight()

btScalar getHeight ( ) const

Definition at line 43 of file btConeShape.h.

References m_height.

◆ getName()

virtual const char* getName ( ) const
virtual

Definition at line 78 of file btConeShape.h.

◆ getRadius()

btScalar getRadius ( ) const

Definition at line 42 of file btConeShape.h.

References m_radius.

◆ localGetSupportingVertex()

virtual btVector3 localGetSupportingVertex ( const btVector3 vec) const
virtual

Definition at line 51 of file btBox2dShape.h.

◆ localGetSupportingVertexWithoutMargin()

virtual btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 vec) const
virtual

btConvexShape Interface

Definition at line 62 of file btBox2dShape.h.

◆ serialize()

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

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

◆ setConeUpIndex()

void btConeShape::setConeUpIndex ( int  upIndex)

choose upAxis index

Definition at line 39 of file btConeShape.cpp.

References btAssert, m_coneIndices, m_height, m_implicitShapeDimensions, and m_radius.

Referenced by btConeShape(), btConeShapeX::btConeShapeX(), and btConeShapeZ::btConeShapeZ().

◆ setHeight()

void setHeight ( const btScalar  height)

Definition at line 49 of file btConeShape.h.

References height, and m_height.

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 scaling)
virtual

Definition at line 120 of file btBox2dShape.h.

◆ setRadius()

void setRadius ( const btScalar  radius)

Definition at line 45 of file btConeShape.h.

References m_radius.

Variable Documentation

◆ __pad0__

btConeShape __pad0__

The btConeShape implements a cone shape primitive, centered around the origin and aligned with the Y axis. The btConeShapeX is aligned around the X axis and btConeShapeZ around the Z axis.

Definition at line 24 of file btConeShape.h.

◆ m_coneIndices

int m_coneIndices[3]

Definition at line 30 of file btConeShape.h.

Referenced by coneLocalSupport(), getConeUpIndex(), and setConeUpIndex().

◆ m_height

btScalar m_height

Definition at line 29 of file btConeShape.h.

Referenced by btConeShape(), coneLocalSupport(), getHeight(), setConeUpIndex(), and setHeight().

◆ m_radius

btScalar m_radius