Blender V4.3
btConvex2dShape.h File Reference

Go to the source code of this file.

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btConvex2dShape (btConvexShape *convexChildShape)
 
virtual ~btConvex2dShape ()
 
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface
 
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface.
 
btConvexShapegetChildShape ()
 
virtual const char * getName () const
 
void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
 
virtual void getAabbSlow (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 
virtual void setLocalScaling (const btVector3 &scaling)
 
virtual const btVector3getLocalScaling () const
 
virtual void setMargin (btScalar margin)
 
virtual btScalar getMargin () const
 
virtual int getNumPreferredPenetrationDirections () const
 
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
 

Variables

btConvex2dShape __pad0__
 

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

◆ btConvex2dShape()

btConvex2dShape::btConvex2dShape ( btConvexShape * convexChildShape)

Definition at line 18 of file btConvex2dShape.cpp.

References CONVEX_2D_SHAPE_PROXYTYPE.

◆ calculateLocalInertia()

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

CollisionShape Interface.

Definition at line 54 of file btConeShape.h.

◆ getAabb()

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

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

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.

◆ getAabbSlow()

void btUniformScalingShape::getAabbSlow ( const btTransform & t,
btVector3 & aabbMin,
btVector3 & aabbMax ) const
virtual

Definition at line 54 of file btConvex2dShape.cpp.

Referenced by getAabb().

◆ getChildShape()

const btConvexShape * getChildShape ( )

◆ getLocalScaling()

virtual const btVector3 & getLocalScaling ( ) const
virtual

Definition at line 126 of file btCompoundShape.h.

◆ getMargin()

virtual btScalar getMargin ( ) const
virtual

Definition at line 137 of file btCompoundShape.h.

◆ getName()

virtual const char * getName ( ) const
virtual

Definition at line 54 of file btConvex2dShape.h.

◆ getNumPreferredPenetrationDirections()

virtual int getNumPreferredPenetrationDirections ( ) const
virtual

Definition at line 306 of file btBox2dShape.h.

◆ getPreferredPenetrationDirection()

virtual void getPreferredPenetrationDirection ( int index,
btVector3 & penetrationVector ) const
virtual

Definition at line 311 of file btBox2dShape.h.

◆ 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.

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 & scaling)
virtual

Definition at line 120 of file btBox2dShape.h.

◆ setMargin()

virtual void setMargin ( btScalar margin)
virtual

Definition at line 110 of file btBox2dShape.h.

◆ ~btConvex2dShape()

btConvex2dShape::~btConvex2dShape ( )
virtual

Definition at line 23 of file btConvex2dShape.cpp.

Variable Documentation

◆ __pad0__

btConvex2dShape __pad0__

The btConvex2dShape allows to use arbitrary convex shapes as 2d convex shapes, with the Z component assumed to be 0. For 2d boxes, the btBox2dShape is recommended.

Definition at line 25 of file btConvex2dShape.h.