VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtBvhCollisionObject Class Reference
Inheritance diagram for DtBvhCollisionObject:
Inheritance graph
[legend]

Public Member Functions

 DtBvhCollisionObject ()
 
void setCollisionShape (btCollisionShape *shape)
 
bool buildBvh ()
 
bool enabled () const
 
boost::shared_ptr
< btCollisionShape > 
bulletCollisionShape () const
 
unsigned int numberOfTriangles () const
 
double radius () const
 
DtSurface triangleSurface (unsigned int triangleIndex) const
 
DynamicFeatures dynamicFeatures () const
 
const btTransform & worldTransform () const
 
- Public Member Functions inherited from DtCollisionObjectInterface
virtual ~DtCollisionObjectInterface ()
 

Protected Attributes

DtBvhTriangleMeshShape::Ptr myShape
 

Additional Inherited Members

- Public Types inherited from DtCollisionObjectInterface
typedef std::vector
< boost::shared_ptr
< makVrv::DtDynamicTerrainFeature > > 
DynamicFeatures
 

Constructor & Destructor Documentation

DtBvhCollisionObject::DtBvhCollisionObject ( )

Member Function Documentation

void DtBvhCollisionObject::setCollisionShape ( btCollisionShape *  shape)
bool DtBvhCollisionObject::buildBvh ( )
virtual

Build the bvh with mutex locked. Call as many times as you like, will only build once.

Returns
True if building bvh was successful.

Implements DtCollisionObjectInterface.

bool DtBvhCollisionObject::enabled ( ) const
virtual

Intersections will ignore this object if this returns true.

Implements DtCollisionObjectInterface.

Reimplemented in DtEntityTerrainGeometryHandle::CollisionObject.

boost::shared_ptr<btCollisionShape> DtBvhCollisionObject::bulletCollisionShape ( ) const
virtual

Access the underlying bullet collision shape.

Implements DtCollisionObjectInterface.

unsigned int DtBvhCollisionObject::numberOfTriangles ( ) const
virtual

Return number of triangles in this object (ignores instancing).

Implements DtCollisionObjectInterface.

double DtBvhCollisionObject::radius ( ) const
virtual

Returns the maximum distance of all points from the origin of this object.

Implements DtCollisionObjectInterface.

DtSurface DtBvhCollisionObject::triangleSurface ( unsigned int  triangleIndex) const
virtual

Return the surface of a triangle at a given index.

Implements DtCollisionObjectInterface.

DynamicFeatures DtBvhCollisionObject::dynamicFeatures ( ) const
virtual

Return all the dynamic features which contain this object.

Implements DtCollisionObjectInterface.

const btTransform& DtBvhCollisionObject::worldTransform ( ) const
virtual

Access the world transform of the collision object.

Implements DtCollisionObjectInterface.

Member Data Documentation

DtBvhTriangleMeshShape::Ptr DtBvhCollisionObject::myShape
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)