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

Go to the source code of this file.

Functions

btVector3 getHalfExtentsWithMargin () const
 
const btVector3getHalfExtentsWithoutMargin () const
 
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
 
SIMD_FORCE_INLINE btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface More...
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
 btBoxShape (const btVector3 &boxHalfExtents)
 
virtual void setMargin (btScalar collisionMargin)
 
virtual void setLocalScaling (const btVector3 &scaling)
 in case we receive negative scaling More...
 
virtual 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 More...
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 
virtual void getPlane (btVector3 &planeNormal, btVector3 &planeSupport, int i) const
 
virtual int getNumPlanes () const
 
virtual int getNumVertices () const
 
virtual int getNumEdges () const
 
virtual void getVertex (int i, btVector3 &vtx) const
 
virtual void getPlaneEquation (btVector4 &plane, int i) const
 
virtual void getEdge (int i, btVector3 &pa, btVector3 &pb) const
 
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
 
virtual const char * getName () const
 
virtual int getNumPreferredPenetrationDirections () const
 
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
 

Variables

btBoxShape __pad0__
 The btBoxShape is a box primitive around the origin, its sides axis aligned with length specified by half extents, in local shape coordinates. When used as part of a btCollisionObject or btRigidBody it will be an oriented box in world space. More...
 

Function Documentation

◆ batchedUnitVectorGetSupportingVertexWithoutMargin()

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

Definition at line 67 of file btBoxShape.h.

References btFsels, btVector3, and getHalfExtentsWithoutMargin().

◆ btBoxShape()

btBoxShape::btBoxShape ( const btVector3 boxHalfExtents)

◆ calculateLocalInertia()

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

Definition at line 54 of file btConeShape.h.

◆ getAabb()

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

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

Definition at line 54 of file btCapsuleShape.h.

◆ getEdge()

virtual void getEdge ( int  i,
btVector3 pa,
btVector3 pb 
) const
virtual

Definition at line 170 of file btBoxShape.h.

References btAssert, and getVertex().

◆ getHalfExtentsWithMargin()

btVector3 getHalfExtentsWithMargin ( ) const

Definition at line 34 of file btBoxShape.h.

References btVector3, getHalfExtentsWithoutMargin(), and getMargin().

Referenced by getVertex().

◆ getHalfExtentsWithoutMargin()

const btVector3& getHalfExtentsWithoutMargin ( ) const

◆ getName()

virtual const char* getName ( ) const
virtual

Definition at line 253 of file btBoxShape.h.

◆ getNumEdges()

virtual int getNumEdges ( ) const
virtual

Definition at line 126 of file btBoxShape.h.

◆ getNumPlanes()

virtual int getNumPlanes ( ) const
virtual

Definition at line 116 of file btBoxShape.h.

◆ getNumPreferredPenetrationDirections()

virtual int getNumPreferredPenetrationDirections ( ) const
virtual

Definition at line 258 of file btBoxShape.h.

◆ getNumVertices()

virtual int getNumVertices ( ) const
virtual

Definition at line 121 of file btBoxShape.h.

◆ getPlane()

virtual void getPlane ( btVector3 planeNormal,
btVector3 planeSupport,
int  i 
) const
virtual

Definition at line 107 of file btBoxShape.h.

References btVector3, getPlaneEquation(), and localGetSupportingVertex().

◆ getPlaneEquation()

virtual void getPlaneEquation ( btVector4 plane,
int  i 
) const
virtual

Definition at line 141 of file btBoxShape.h.

References btAssert, btVector3, getHalfExtentsWithoutMargin(), and btVector4::setValue().

Referenced by getPlane().

◆ getPreferredPenetrationDirection()

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

Definition at line 263 of file btBoxShape.h.

References btAssert.

◆ getVertex()

virtual void getVertex ( int  i,
btVector3 vtx 
) const
virtual

Definition at line 131 of file btBoxShape.h.

References btVector3, and getHalfExtentsWithMargin().

Referenced by getEdge().

◆ isInside()

virtual bool isInside ( const btVector3 pt,
btScalar  tolerance 
) const
virtual

Definition at line 236 of file btBoxShape.h.

References btVector3, getHalfExtentsWithoutMargin(), and result.

◆ localGetSupportingVertex()

virtual btVector3 localGetSupportingVertex ( const btVector3 vec) const
virtual

Definition at line 47 of file btBoxShape.h.

References btFsels, btVector3, getHalfExtentsWithoutMargin(), and getMargin().

Referenced by getPlane().

◆ localGetSupportingVertexWithoutMargin()

SIMD_FORCE_INLINE btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 vec) const

btConvexShape Interface

Definition at line 58 of file btBoxShape.h.

References btFsels, btVector3, and getHalfExtentsWithoutMargin().

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 scaling)
virtual

in case we receive negative scaling

Definition at line 92 of file btBoxShape.h.

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

◆ setMargin()

virtual void setMargin ( btScalar  collisionMargin)
virtual

Definition at line 82 of file btBoxShape.h.

References btVector3, getMargin(), and m_implicitShapeDimensions.

Variable Documentation

◆ __pad0__

btBoxShape __pad0__

The btBoxShape is a box primitive around the origin, its sides axis aligned with length specified by half extents, in local shape coordinates. When used as part of a btCollisionObject or btRigidBody it will be an oriented box in world space.

Definition at line 27 of file btBoxShape.h.