VR-Forces 4.1 Class Documentation
bulletUtil.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <btBulletCollisionCommon.h>
15 #include <geometry/point.h>
16 #include <matrix/vlVector.h>
17 #include <list>
18 #include <geometry/surface.h>
20 
21 class DtChord;
22 class DtSphere;
23 class DtLocalVertexList;
25 
27 
28 btVector3 DtPoint2btVector3(const DtPoint& p);
29 btVector3 DtVector2btVector3(const DtVector& v);
30 DtPoint btVector32DtPoint(const btVector3& v);
31 DtVector btVector32DtVector(const btVector3& v);
33 
37 bool chordSphereVolumetricIntersect(const DtChord& chord,
38  const DtSphere& sphere);
39 
42 bool sphereSphereVolumetricIntersect(const DtSphere& sphere1,
43  const DtSphere& sphere2);
44 
51  const DtSphere& sphere);
52 
57  const DtSphere& sphere);
58 
61 struct DtAllHitsRayResultCallback : public btCollisionWorld::RayResultCallback
62 {
63  DtAllHitsRayResultCallback(const btVector3& rayFromWorld,const btVector3& rayToWorld,
64  DtChordIntersectRecordList& resultList);
65 
66  virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult& rayResult,bool normalInWorldSpace);
67 
68  btVector3 m_rayFromWorld;//used to calculate hitPointWorld from hitFraction
69  btVector3 m_rayToWorld;
71 };
72 
73 DtSurface getSurfaceType(btCollisionWorld::LocalRayResult& rayResult);
74 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)