VR-Forces 4.2 Class Documentation
fallingFromSkyActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 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;
21 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
46 
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  virtual bool createPortGroups();
76 
79  virtual void calculateOrientation(const DtDcm&
80  oldLocalOrientation, const DtVector& newBodyRotationRates,
81  DtDcm& newLocalOrientation);
82 
88  virtual bool isFallingApplicable();
89 
92  virtual void fallFromSky();
93 
95  virtual double calculateAcceleration(double curSpeed) const;
96 
98  virtual double calculateDrag() const;
99 
101  virtual void getWindSpeedAndDirection(double& windSpeed, double& direction) const;
102 
104  void integrate(const DtVector& oldLocalPosition,
105  const DtVector& oldRelativeVelocity,
106  const DtVector& newRelativeAcceleration, DtVector& newLocalPosition,
107  DtVector& newRelativeVelocity);
108 
109  virtual void updateRepository(const DtVector& newLocalPosition,
110  const DtVector& newRelativeVelocity,
111  const DtVector& newRelativeAcceleration,
112  const DtDcm& newLocalOrientation, const DtVector& newBodyRotationRates);
113 
114 protected:
115 
118 
121 
125 
127  virtual void sendSplashDetonation(const DtVector& geocentricLocation);
128 
129 protected:
132  double myWaterHeight;
133 
135 
136 
140 };
141 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)