VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vantageTerrainImplementation
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
13
#include <
vantageTerrainImplementation/vantageTerrainImplementationDefines.h
>
14
#include <btBulletCollisionCommon.h>
15
#include <
geometry/point.h
>
16
#include <matrix/vlVector.h>
17
#include <list>
18
#include <
geometry/surface.h
>
19
#include <
terrainInterface/terrainPagingGeometry.h
>
20
21
class
DtChord
;
22
class
DtSphere
;
23
class
DtLocalVertexList
;
24
class
DtChordIntersectRecordList
;
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);
32
bool
btVectorIsZero
(
const
btVector3& v);
34
38
bool
chordSphereVolumetricIntersect
(
const
DtChord
& chord,
39
const
DtSphere
& sphere);
40
43
bool
sphereSphereVolumetricIntersect
(
const
DtSphere
& sphere1,
44
const
DtSphere
& sphere2);
45
51
bool
shapeSphereVolumetricIntersect
(
const
DtLocalVertexList
& shape,
52
const
DtSphere
& sphere);
53
57
bool
geometrySphereVolumetricIntersect
(
DtTerrainPagingGeometryPtr
geometry,
58
const
DtSphere
& sphere);
59
62
struct
DtAllHitsRayResultCallback
:
public
btCollisionWorld::RayResultCallback
63
{
64
DtAllHitsRayResultCallback
(
const
btVector3& rayFromWorld,
const
btVector3& rayToWorld,
65
DtChordIntersectRecordList
& resultList);
66
67
virtual
btScalar
addSingleResult
(btCollisionWorld::LocalRayResult& rayResult,
bool
normalInWorldSpace);
68
virtual
bool
needsCollision
(btBroadphaseProxy* proxy0)
const
;
69
70
btVector3
m_rayFromWorld
;
//used to calculate hitPointWorld from hitFraction
71
btVector3
m_rayToWorld
;
72
DtChordIntersectRecordList
&
myResultList
;
73
};
74
75
struct
DtClosestRayResultCallback
:
public
btCollisionWorld::ClosestRayResultCallback
76
{
77
DtClosestRayResultCallback
(
const
btVector3& rayFromWorld,
const
btVector3& rayToWorld);
78
virtual
bool
needsCollision
(btBroadphaseProxy* proxy0)
const
;
79
};
80
81
DtSurface
getSurfaceType
(btCollisionWorld::LocalRayResult& rayResult);
82
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)