VR-Forces 4.3.1 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
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
31
class
DT_DLL_VRVTRITON
DtTritonWakeUpdater
:
public
DtWakeUpdater
32
{
33
public
:
37
DtTritonWakeUpdater
(
DtDe
& de,
DtUniqueID
id
);
38
40
virtual
~
DtTritonWakeUpdater
();
41
44
virtual
void
update(
DtTime
tNow );
45
50
virtual
bool
needsUpdate(
DtTime
tNow );
51
57
virtual
void
setPosition(
const
DtVector
& pos);
58
64
virtual
void
setOrientation(
const
DtTaitBryan& ori);
65
67
virtual
void
setIsAmphibious(
bool
isAmphibious );
68
69
protected
:
70
73
virtual
DtTritonWakeModel
* wakeModel()
const
;
74
82
virtual
DtVector
calcWakeOrigin(
const
DtVector
& currentPos,
83
const
DtTaitBryan& orientation,
double
wakeOffset );
84
87
virtual
bool
getCurrentShipKinematics(
double
t,
DtVector
& position,
88
DtVector
& velocity, DtTaitBryan& orientation)
const
;
89
90
protected
:
91
bool
myFirstTick
;
92
DtDoubleSmoother
mySpeedSmoother,
myVelocityXSmoother
;
93
DtDoubleSmoother
myVelocityYSmoother,
myVelocityZSmoother
;
94
95
// wake values used if a dead-reckoner does not exist.
96
bool
mySetManually
;
97
bool
myPositionUpdated
;
98
DtVector
myPosition
;
99
DtVector
myLastPosition
;
100
DtTaitBryan
myOrientation
;
101
bool
myIsAmphibious
;
102
};
103
104
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)