VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sinkToDepthActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vlpi/disEnums.h>
12 
18 
20 {
21 public:
24  DtSinkToDepthActuator(const DtString& name,
25  DtLocalObject* owner,
26  DtSimulationServices* simManager,
27  DtComponentDescriptor* desc = 0,
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
30 
34  virtual ~DtSinkToDepthActuator();
35 
38  virtual const char* type() const;
39 
41  enum
42  {
45  DtSinkStateRising
46  };
47 
49  virtual void tick();
50 
54  static DtSimComponent * creator(const DtString& name,
55  DtLocalObject* owner,
56  DtSimulationServices* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
60 
61 protected:
66  virtual void computeTerrainSituation();
67 
69  virtual double waterDragCoefficient() const;
70 
71 
75  virtual void sinkInWater();
76 
80  virtual void riseInWater();
81 
83  virtual double waterDragAccelerationFromSpeed(double curSpeed) const;
84 
85 protected:
87  virtual double riseRate(){ return 5.0; }
88 
91 
94 
96  const DtSinkToDepthActuator & operator=(const
97  DtSinkToDepthActuator & orig);
98 
99 protected:
103 };
104 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: sinkToDepthActuator.h:43
A falling from sky that will take underwater depth into account when beneath the surface. Will hard stop the entity when it reaches the ordered altitude or the sea floor.
Definition: sinkToDepthActuator.h:19
const DtFallingFromSkyActuatorComponent & operator=(const DtFallingFromSkyActuatorComponent &orig)
assignment operator; not implemented
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
int myFallingState
Definition: sinkToDepthActuator.h:100
virtual void tick()
Calls isFallingApplicable to determine if it should do anything, and if so calls fallFromSky.
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
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: sinkToDepthActuator.h:102
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: sinkToDepthActuator.h:44
bool myUnderwater
Definition: sinkToDepthActuator.h:101
DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on t...
Definition: fallingFromSkyActuatorComponent.h:34
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
virtual double riseRate()
The constant rate at which an entity under water will rise.
Definition: sinkToDepthActuator.h:87

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)