VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
frictionlessGravityCollisionActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vlpi/disEnums.h>
10 #include <matrix/LibMatrix.h>
14 
15 class DtString;
16 class DtSimManager;
19 
23 {
24 
25 public:
26 
30  DtVrfObject* owner,
31  DtSimManager* simManager,
32  DtComponentDescriptor* desc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
35 
40 
41  virtual bool init();
42 
43  virtual void preFirstTickInit();
44 
47  virtual const char* type() const;
48 
50  virtual bool registerRadioMessageCallbacks();
51 
53  static void setWarheadInfoCallback(DtSimMessage* msg, void* usr);
54 
57  virtual void processWarheadInfoCallback(DtSimMessage* msg);
58 
62  static DtSimComponent * creator(const DtString& name,
63  DtVrfObject* owner,
64  DtSimManager* simManager,
65  DtComponentDescriptor* desc = 0,
66  DtReaderWriterRegistry* parentRegistry = 0);
67 
68 
69 protected:
71  virtual void fallFromSky();
72 
74  virtual bool calculateCollisionVector(const DtVector& oldLocalPosition, const DtVector& oldLocalVelocity,DtVector & impactPoint,
75  DtVector & collisionVector, double & speed);
76 
78  virtual DtChord movementChord(const DtVector& oldLocalPosition, const DtVector& newLocalPosition,
79  DtVector& intersectionVector, DtVector& bvCenterFromPosition);
80 
81 protected:
82 
85 
88 
92 
93 protected:
95 
96  bool myOnGround;
97 
99 
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)