VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
fallingFromSkyActuator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
#pragma once
11
12
#include <vlpi/disEnums.h>
13
#include "
vrfobjcore/actCmpnt.h
"
14
#include <matrix/LibMatrix.h>
15
16
class
DtString
;
17
class
DtSimManager
;
18
class
DtVrfMovingObjectStateRepository
;
19
class
DtFallingFromSkyActuatorDescriptor
;
20
21
32
#include "
vrfmodel/vrfmodelDefines.h
"
33
class
DT_DLL_vrfmodel
DtFallingFromSkyActuatorComponent
:
public
DtActuatorComponent
34
{
35
36
public
:
37
40
DtFallingFromSkyActuatorComponent
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
46
50
virtual
~
DtFallingFromSkyActuatorComponent
();
51
54
virtual
bool
init
();
55
58
virtual
DtString
type
()
const
;
59
62
virtual
void
tick
();
63
67
static
DtSimComponent
* creator(
const
DtString
& name,
68
DtVrfObject
* owner,
69
DtSimManager
* simManager,
70
DtComponentDescriptor
* desc = 0,
71
DtReaderWriterRegistry
* parentRegistry = 0);
72
73
74
protected
:
75
78
virtual
void
calculateOrientation(
const
DtDcm&
79
oldLocalOrientation,
const
DtVector
& newBodyRotationRates,
80
DtDcm& newLocalOrientation);
81
84
virtual
void
fallFromSky();
85
87
void
integrate(
const
DtVector
& oldLocalPosition,
88
const
DtVector
& oldRelativeVelocity,
89
const
DtVector
& newRelativeAcceleration,
DtVector
& newLocalPosition,
90
DtVector
& newRelativeVelocity);
91
92
virtual
void
updateRepository(
const
DtVector
& newLocalPosition,
93
const
DtVector
& newRelativeVelocity,
94
const
DtVector
& newRelativeAcceleration,
95
const
DtDcm& newLocalOrientation,
const
DtVector
& newBodyRotationRates,
96
bool
isOnGround);
97
98
protected
:
99
101
DtFallingFromSkyActuatorComponent
();
102
104
DtFallingFromSkyActuatorComponent
(
const
DtFallingFromSkyActuatorComponent
& orig);
105
107
const
DtFallingFromSkyActuatorComponent
&
operator=
(
const
108
DtFallingFromSkyActuatorComponent
& orig);
109
110
protected
:
111
112
DtVrfMovingObjectStateRepository
*
myState
;
113
DtFallingFromSkyActuatorDescriptor
*
myFallingFromSkyActuatorDescriptor
;
114
};
115
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)