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
include
vrfmodel
sinkToDepthActuator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vlpi/disEnums.h>
9
#include <
vrfmodel/fallingFromSkyActuatorComponent.h
>
10
#include "
vrfmodel/vrfmodelDefines.h
"
11
17
18
class
DT_DLL_vrfmodel
DtSinkToDepthActuator
:
public
DtFallingFromSkyActuatorComponent
19
{
20
public
:
23
DtSinkToDepthActuator
(
const
DtString
& name,
24
DtVrfObject
* owner,
25
DtSimManager
* simManager,
26
DtComponentDescriptor
* desc = 0,
27
DtReaderWriterRegistry
* parentRegistry = 0);
28
29
33
virtual
~
DtSinkToDepthActuator
();
34
37
virtual
const
char
*
type
()
const
;
38
40
enum
41
{
42
DtSinkStateInitial
,
43
DtSinkStateFalling
,
44
DtSinkStateRising
45
};
46
48
virtual
void
tick
();
49
53
static
DtSimComponent
*
creator
(
const
DtString
& name,
54
DtVrfObject
* owner,
55
DtSimManager
* simManager,
56
DtComponentDescriptor
* desc = 0,
57
DtReaderWriterRegistry
* parentRegistry = 0);
58
59
60
protected
:
65
virtual
void
computeTerrainSituation();
66
68
virtual
double
waterDragCoefficient()
const
;
69
70
74
virtual
void
sinkInWater();
75
79
virtual
void
riseInWater();
80
82
virtual
double
waterDragAccelerationFromSpeed(
double
curSpeed)
const
;
83
84
protected
:
86
virtual
double
riseRate
(){
return
5.0; }
87
89
DtSinkToDepthActuator
();
90
92
DtSinkToDepthActuator
(
const
DtSinkToDepthActuator
& orig);
93
95
const
DtSinkToDepthActuator
&
operator=
(
const
96
DtSinkToDepthActuator
& orig);
97
98
protected
:
99
int
myFallingState
;
100
bool
myUnderwater
;
101
};
102
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
)