Blender V4.3
btStaticPlaneShape.h File Reference
#include "btConcaveShape.h"

Go to the source code of this file.

Classes

struct  btStaticPlaneShapeData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btStaticPlaneShape (const btVector3 &planeNormal, btScalar planeConstant)
 
virtual ~btStaticPlaneShape ()
 
virtual 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.
 
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface.
 
virtual void setLocalScaling (const btVector3 &scaling)
 in case we receive negative scaling
 
virtual const btVector3getLocalScaling () const
 
const btVector3getPlaneNormal () const
 
const btScalargetPlaneConstant () const
 
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)
 

Variables

btStaticPlaneShape __pad0__
 The btStaticPlaneShape simulates an infinite non-moving (static) collision plane.
 
btVector3 m_localAabbMax
 
btVector3 m_planeNormal
 
btScalar m_planeConstant
 
btVector3 m_localScaling
 

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btStaticPlaneShape()

btStaticPlaneShape::btStaticPlaneShape ( const btVector3 & planeNormal,
btScalar planeConstant )

Definition at line 20 of file btStaticPlaneShape.cpp.

References STATIC_PLANE_PROXYTYPE.

Referenced by btCollisionWorldImporter::createPlaneShape().

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

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

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.

◆ getLocalScaling()

virtual const btVector3 & getLocalScaling ( ) const
virtual

Definition at line 126 of file btCompoundShape.h.

◆ getName()

virtual const char * getName ( ) const
virtual

Definition at line 60 of file btStaticPlaneShape.h.

◆ getPlaneConstant()

const btScalar & getPlaneConstant ( ) const

Definition at line 54 of file btStaticPlaneShape.h.

References m_planeConstant.

◆ getPlaneNormal()

const btVector3 & getPlaneNormal ( ) const

Definition at line 49 of file btStaticPlaneShape.h.

References m_planeNormal.

◆ processAllTriangles()

virtual void processAllTriangles ( btTriangleCallback * callback,
const btVector3 & aabbMin,
const btVector3 & aabbMax ) const
virtual

Definition at line 57 of file btEmptyShape.h.

◆ 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 120 of file btBox2dShape.h.

◆ ~btStaticPlaneShape()

btStaticPlaneShape::~btStaticPlaneShape ( )
virtual

Definition at line 27 of file btStaticPlaneShape.cpp.

Variable Documentation

◆ __pad0__

The btStaticPlaneShape simulates an infinite non-moving (static) collision plane.

Definition at line 23 of file btStaticPlaneShape.h.

◆ m_localAabbMax

btVector3 m_localAabbMax

Definition at line 27 of file btStaticPlaneShape.h.

◆ m_localScaling

btVector3 m_localScaling

Definition at line 31 of file btStaticPlaneShape.h.

◆ m_planeConstant

◆ m_planeNormal