VR-Forces 4.7 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
include
vrvTriton
DtTritonWakeUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvTriton/vrvTriton.h
>
13
14
#include <
vrvCore/DtWakeUpdater.h
>
15
#include <
vrvCore/DtDoubleSmoother.h
>
16
17
#include <matrix/vlVector.h>
18
#include <matrix/vlTaitBryan.h>
19
20
namespace
makVrv
21
{
22
class
DtDe;
23
class
DtTritonWakeModel;
24
class
DtSceneObject;
25
32
class
DT_DLL_VRVTRITON
DtTritonWakeUpdater
:
public
DtWakeUpdater
33
{
34
public
:
38
DtTritonWakeUpdater
(
DtDe
& de,
DtUniqueID
id
);
39
41
virtual
~
DtTritonWakeUpdater
();
42
45
virtual
void
update(
DtTime
tNow );
46
51
virtual
bool
needsUpdate(
DtTime
tNow );
52
58
virtual
void
setPosition(
const
DtVector
& pos);
59
65
virtual
void
setOrientation(
const
DtTaitBryan& ori);
66
68
virtual
void
setIsAmphibious(
bool
isAmphibious );
69
70
protected
:
71
74
virtual
DtTritonWakeModel
* wakeModel()
const
;
75
86
virtual
DtVector
calcWakeOriginAndSeaLevel(
DtVector
& currentPos,
87
const
DtTaitBryan& orientation,
double
wakeOffset );
88
91
virtual
bool
getCurrentShipKinematics(
double
t,
DtVector
& position,
92
DtVector
& velocity, DtTaitBryan& orientation)
const
;
93
94
protected
:
95
bool
myFirstTick
;
96
DtDoubleSmoother
mySpeedSmoother,
myVelocityXSmoother
;
97
DtDoubleSmoother
myVelocityYSmoother,
myVelocityZSmoother
;
98
100
DtSceneObject
*
myWakeModelSceneObject
;
101
102
// wake values used if a dead-reckoner does not exist.
103
bool
mySetManually
;
104
bool
myPositionUpdated
;
105
DtVector
myPosition
;
106
DtVector
myLastPosition
;
107
DtTaitBryan
myOrientation
;
108
bool
myIsAmphibious
;
109
};
110
111
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)