VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
exampleProjectile
DtProjectile.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2016 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
11
#include <
vrvCore/DtUniqueID.h
>
12
13
#include <matrix/vlVector.h>
14
#include <matrix/vlTaitBryan.h>
15
16
#include <boost/unordered_map.hpp>
17
#include <boost/function.hpp>
18
19
#include <string>
20
21
// Use the VR-Vantage namespace.
22
// All classes in VR-Vantage are in this namespace.
23
24
namespace
makVrv
25
{
26
class
DtEntity3dFacade;
27
class
DtDe;
28
class
DtIntersectorResult;
29
30
class
DtProjectile
31
{
32
public
:
33
34
typedef
boost::function<void ( const DtIntersectorResult&, double )>
IntersectionCallback
;
35
36
public
:
37
38
39
DtProjectile
(
DtDe
& de,
const
DtVector
& start,
const
DtTaitBryan& orientation,
double
speed,
40
const
DtVector
& direction,
const
std::string& modelDefinitionName,
41
IntersectionCallback
callback = (
IntersectionCallback
) 0 );
42
43
virtual
~DtProjectile
();
44
45
bool
tick
(
double
simTime );
46
47
DtElementID
id
()
const
;
48
49
protected
:
50
virtual
DtTaitBryan
orientationFromOldAndNewPositions
(
const
DtVector
& oldPos,
const
DtVector
& newPos );
51
52
protected
:
53
DtDe
&
myDe
;
54
DtEntity3dFacade
*
myFacade
;
55
DtTaitBryan
myOrientation
;
56
double
myFiringStartTime
;
57
IntersectionCallback
myIntersectionCallback
;
58
59
DtVector
myFiringPosition
;
60
DtVector
myDirection
;
61
DtVector
myVelocity0
;
62
DtVector
myAcceleration
;
63
};
64
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)