VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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;
19 
23 {
24 
25 public:
26 
30  DtLocalObject* owner,
31  DtSimulationServices* 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  DtLocalObject* owner,
64  DtSimulationServices* 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 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
virtual void fallFromSky()
Causes the entity to fall from the sky, ignoring drag.
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
Simpler version of Falling from the sky that ignores drag and wind.
Definition: frictionlessGravityCollisionActuator.h:21
const DtFrictionlessGravityActuator & operator=(const DtFrictionlessGravityActuator &orig)
assignment operator; not implemented
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
bool myOnGround
Definition: frictionlessGravityCollisionActuator.h:96
File: simMsg.h.
Definition: simMessage.h:35
Definition: fallingFromSkyActuatorDescriptor.h:18
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
DtUUID myAttacker
Definition: frictionlessGravityCollisionActuator.h:98
Simpler version of Falling from the sky that ignores drag and wind.
Definition: frictionlessGravityActuator.h:20
virtual bool init()
to get access to the entity&#39;s localStateRepository, which this component will update, and then connect to the controller&#39;s ports.
DtVector myLastPosition
Definition: frictionlessGravityCollisionActuator.h:94
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)