VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
exampleProjectile
DtExampleProjectile.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2016 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/DtDriver.h
>
13
14
#include <matrix/vlVector.h>
15
16
#include <string>
17
#include <list>
18
19
namespace
makVrv
20
{
21
class
DtObserverShooter;
22
class
DtIntersectorResult;
23
class
DtSceneObjectAgent;
24
class
DtParticleSystemModelAgent;
25
class
DtWaterImpactModelAgent;
26
27
class
DtExampleProjectile
:
public
makVrv::DtDriver
28
{
29
public
:
30
32
DtExampleProjectile
(
makVrv::DtAgentManager
& am );
33
35
virtual
~DtExampleProjectile
();
36
39
42
virtual
const
std::string&
className
()
const
;
43
44
protected
:
47
virtual
bool
onStart
();
48
51
virtual
bool
onStop
();
52
55
virtual
bool
onTick
();
56
60
virtual
void
slot_displayEngineAdded
(
const
makVrv::DtDeRecord
& igRecord );
62
64
virtual
void
processIntersection
(
const
DtIntersectorResult
& isect,
double
speed );
65
66
virtual
void
createDetonation
(
const
DtVector
& position );
67
virtual
void
createSplash
(
const
DtVector
& position,
double
speed );
68
69
protected
:
70
DtObserverShooter
*
myObserverShooter
;
71
72
struct
DetonationData
73
{
74
DtSceneObjectAgent*
detonationObject
;
75
DtParticleSystemModelAgent*
detonationModel
;
76
double
timeOfOccurence
;
77
};
78
79
struct
SplashData
80
{
81
DtSceneObjectAgent*
splashObject
;
82
DtWaterImpactModelAgent*
splashModel
;
83
double
timeOfOccurence
;
84
};
85
typedef
std::list<DetonationData>
DetonationList
;
86
typedef
std::list<SplashData>
SplashList
;
87
DetonationList
myDetonationObjects
;
88
SplashList
mySplashObjects
;
89
90
};
91
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)