Blender
V3.3
|
#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 btVector3 & | getHalfExtentsWithoutMargin () 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... | |
|
virtual |
Definition at line 67 of file btBoxShape.h.
References btFsels, btVector3, and getHalfExtentsWithoutMargin().
btBoxShape::btBoxShape | ( | const btVector3 & | boxHalfExtents | ) |
Definition at line 17 of file btBoxShape.cpp.
References BOX_SHAPE_PROXYTYPE, btVector3, getMargin(), m_implicitShapeDimensions, m_localScaling, and setSafeMargin().
Referenced by btCollisionWorldImporter::convertCollisionShape(), btCollisionWorldImporter::createBoxShape(), btCollisionWorld::debugDrawObject(), getAabbNonVirtual(), getMarginNonVirtual(), btSphereBoxCollisionAlgorithm::getSphereDistance(), localGetSupportVertexWithoutMarginNonVirtual(), btBoxBoxCollisionAlgorithm::processCollision(), and RB_shape_new_box().
Definition at line 54 of file btConeShape.h.
|
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.
Definition at line 170 of file btBoxShape.h.
References btAssert, and getVertex().
btVector3 getHalfExtentsWithMargin | ( | ) | const |
Definition at line 34 of file btBoxShape.h.
References btVector3, getHalfExtentsWithoutMargin(), and getMargin().
Referenced by getVertex().
const btVector3& getHalfExtentsWithoutMargin | ( | ) | const |
Definition at line 42 of file btBoxShape.h.
References m_implicitShapeDimensions.
Referenced by batchedUnitVectorGetSupportingVertexWithoutMargin(), getHalfExtentsWithMargin(), getPlaneEquation(), isInside(), localGetSupportingVertex(), and localGetSupportingVertexWithoutMargin().
|
virtual |
Definition at line 253 of file btBoxShape.h.
|
virtual |
Definition at line 126 of file btBoxShape.h.
|
virtual |
Definition at line 116 of file btBoxShape.h.
|
virtual |
Definition at line 258 of file btBoxShape.h.
|
virtual |
Definition at line 121 of file btBoxShape.h.
Definition at line 107 of file btBoxShape.h.
References btVector3, getPlaneEquation(), and localGetSupportingVertex().
Definition at line 141 of file btBoxShape.h.
References btAssert, btVector3, getHalfExtentsWithoutMargin(), and btVector4::setValue().
Referenced by getPlane().
|
virtual |
Definition at line 263 of file btBoxShape.h.
References btAssert.
Definition at line 131 of file btBoxShape.h.
References btVector3, and getHalfExtentsWithMargin().
Referenced by getEdge().
Definition at line 236 of file btBoxShape.h.
References btVector3, getHalfExtentsWithoutMargin(), and result.
Definition at line 47 of file btBoxShape.h.
References btFsels, btVector3, getHalfExtentsWithoutMargin(), and getMargin().
Referenced by getPlane().
SIMD_FORCE_INLINE btVector3 localGetSupportingVertexWithoutMargin | ( | const btVector3 & | vec | ) | const |
btConvexShape Interface
Definition at line 58 of file btBoxShape.h.
References btFsels, btVector3, and getHalfExtentsWithoutMargin().
in case we receive negative scaling
Definition at line 92 of file btBoxShape.h.
References btVector3, getMargin(), m_implicitShapeDimensions, and m_localScaling.
Definition at line 82 of file btBoxShape.h.
References btVector3, getMargin(), and m_implicitShapeDimensions.
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.