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() override;
35 
38  virtual const char* type() const override;
39 
41  enum
42  {
45  DtSinkStateRising
46  };
47 
49  virtual void tick() override;
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
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
virtual void tick() override
Calls isFallingApplicable to determine if it should do anything, and if so calls fallFromSky.
int myFallingState
Definition: sinkToDepthActuator.h:100
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
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
A locally simulated VRF object.
Definition: localObject.h:98
virtual double riseRate()
The constant rate at which an entity under water will rise.
Definition: sinkToDepthActuator.h:87

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)