VR-Forces 4.6.1 Class Documentation
 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 ()
 Build the bvh with mutex locked.
bool enabled () const
 Intersections will ignore this object if this returns true.
boost::shared_ptr
< btCollisionShape > 
bulletCollisionShape () const
 Access the underlying bullet collision shape.
unsigned int numberOfTriangles () const
 Return number of triangles in this object (ignores instancing).
double radius () const
 Returns the maximum distance of all points from the origin of this object.
DtSurface triangleSurface (unsigned int triangleIndex) const
 Return the surface of a triangle at a given index.
DynamicFeatures dynamicFeatures () const
 Return all the dynamic features which contain this object.
- Public Member Functions inherited from DtCollisionObjectInterface
virtual ~DtCollisionObjectInterface ()
 Virtual destructor.

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.

Member Data Documentation

DtBvhTriangleMeshShape::Ptr DtBvhCollisionObject::myShape
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)