VR-Forces 5.0.2 Developer's Guide
 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
 
struct  DtBulletRayResultCallback::RayResultRecord
 
struct  DtAllHitsRayResultCallback
 
struct  DtClosestRayResultCallback
 
struct  DtIntersectionExistsCallback
 

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)
 
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)
 
btVector3 DtPoint2btVector3 (const DtPoint &p)
 
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

Utilities for using Bullet in MAK products.

DtPoint btVector32DtPoint ( const btVector3 &  v)
inline

Utilities for using Bullet in MAK products.

DtVector btVector32DtVector ( const btVector3 &  v)
inline

Utilities for using Bullet in MAK products.

bool DT_DLL_vantageTerrainImplementation btVectorIsZero ( const btVector3 &  v)

Utilities for using Bullet in MAK products.

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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)