VR-Forces 4.1.1 Class Documentation
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;
20 
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 
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 
102 
105 
109 
110 protected:
111 
114 };
115 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)