VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
bulletUtil.h File Reference

Go to the source code of this file.

Classes

struct  DtBulletRayResultCallback
 Base class for bullet callbacks which implements needsCollision. More...
 
struct  DtBulletRayResultCallback::RayResultRecord
 Holds hit results so that data we need from them can be computed after mutex has been released. More...
 
struct  DtAllHitsRayResultCallback
 Extended version of bullet's RayResultCallback which records all the hits along the ray instead of only the closest one. More...
 
struct  DtClosestRayResultCallback
 Only records the closest hit. More...
 
struct  DtIntersectionExistsCallback
 Only records whether there was a hit or not, bails out of future calculations once it finds one. More...
 

Functions

bool
DT_DLL_vantageTerrainImplementation 
chordSphereVolumetricIntersect (const DtChord &chord, const DtSphere &sphere)
 
bool
DT_DLL_vantageTerrainImplementation 
sphereSphereVolumetricIntersect (const DtSphere &sphere1, const DtSphere &sphere2)
 
bool
DT_DLL_vantageTerrainImplementation 
shapeSphereVolumetricIntersect (const Coordinate_System &, const DtLocalVertexList &shape, const DtSphere &sphere)
 Note that this function treats the shape as if it is in two dimensions (all tests ignore height for the sphere and the vertices). More...
 
bool
DT_DLL_vantageTerrainImplementation 
geometrySphereVolumetricIntersect (const Coordinate_System &, DtTerrainPagingGeometryPtr geometry, const DtSphere &sphere)
 
bool
DT_DLL_vantageTerrainImplementation 
DtIntersectRaySphere2 (const DtPoint &rayStartPoint, const DtVector &rayDirectionNonNormalized, const DtSphere &sphere, double &t)
 Almost the same function DtIntersectRaySphere in makTerrainToolkit But removing a few lines of code since in some case we don't need intersection points and segment chord. More...
 
btVector3 DtPoint2btVector3 (const DtPoint &p)
 Utilities for using Bullet in MAK products. More...
 
btVector3 DtVector2btVector3 (const DtVector &v)
 
DtPoint btVector32DtPoint (const btVector3 &v)
 
DtVector btVector32DtVector (const btVector3 &v)
 
bool
DT_DLL_vantageTerrainImplementation 
btVectorIsZero (const btVector3 &v)
 

Function Documentation

btVector3 DtPoint2btVector3 ( const DtPoint p)
inline

Utilities for using Bullet in MAK products.

References DtPoint::x(), DtPoint::y(), and DtPoint::z().

btVector3 DtVector2btVector3 ( const DtVector v)
inline
DtPoint btVector32DtPoint ( const btVector3 &  v)
inline
DtVector btVector32DtVector ( const btVector3 &  v)
inline
bool DT_DLL_vantageTerrainImplementation btVectorIsZero ( const btVector3 &  v)
bool DT_DLL_vantageTerrainImplementation chordSphereVolumetricIntersect ( const DtChord chord,
const DtSphere sphere 
)
Returns
True if the specified chord intersects with the volume defined by sphere. The chord may be wholly contained within the sphere, and this will return true.
bool DT_DLL_vantageTerrainImplementation sphereSphereVolumetricIntersect ( const DtSphere sphere1,
const DtSphere sphere2 
)
Returns
True if the two spheres intersect. One sphere may be wholly contained within the other sphere, and this will return true.
bool DT_DLL_vantageTerrainImplementation shapeSphereVolumetricIntersect ( const Coordinate_System ,
const DtLocalVertexList shape,
const DtSphere sphere 
)

Note that this function treats the shape as if it is in two dimensions (all tests ignore height for the sphere and the vertices).

Returns
True if the shape intersects the sphere. This means that either the center of the sphere is within the shape, or the center of the sphere is within its own radius of the nearest point on the shape.
bool DT_DLL_vantageTerrainImplementation geometrySphereVolumetricIntersect ( const Coordinate_System ,
DtTerrainPagingGeometryPtr  geometry,
const DtSphere sphere 
)
Returns
True if the sphere overlaps the geometry defined in the geometry pointer. Uses the above volumetric intersect functions to do the intersection.
bool DT_DLL_vantageTerrainImplementation DtIntersectRaySphere2 ( const DtPoint rayStartPoint,
const DtVector rayDirectionNonNormalized,
const DtSphere sphere,
double t 
)

Almost the same function DtIntersectRaySphere in makTerrainToolkit But removing a few lines of code since in some case we don't need intersection points and segment chord.


Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)