VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
frictionlessGravityActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vlpi/disEnums.h>
10 #include <matrix/LibMatrix.h>
12 
13 class DtString;
17 
22 {
23 
24 public:
25 
29  DtLocalObject* owner,
30  DtSimulationServices* simManager,
31  DtComponentDescriptor* desc = 0,
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
34 
38  virtual ~DtFrictionlessGravityActuator() override;
39 
42  virtual const char* type() const override;
43 
47  static DtSimComponent * creator(const DtString& name,
48  DtLocalObject* owner,
49  DtSimulationServices* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
53  virtual void preFirstTickInit() override;
54 
55 
56 protected:
57 
59  virtual void fallFromSky() override;
60 
62  virtual void integrate(const DtVector& oldLocalPosition, const DtVector& oldRelativeVelocity,
63  const DtVector& newRelativeAcceleration, DtVector& newLocalPosition, DtVector& newRelativeVelocity) override;
64 
66  virtual DtVector initialRotationRate();
67 
68 protected:
69 
72 
75 
79 };
80 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
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 fallFromSky()
Causes the entity to fall from the sky. Takes into account drag coefficient from descriptor.
virtual void integrate(const DtVector &oldLocalPosition, const DtVector &oldRelativeVelocity, const DtVector &newRelativeAcceleration, DtVector &newLocalPosition, DtVector &newRelativeVelocity)
Integrates myRelativeVelocity and myLocalPosition.
Definition: fallingFromSkyActuatorDescriptor.h:18
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
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Simpler version of Falling from the sky that ignores drag and wind.
Definition: frictionlessGravityActuator.h:20
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

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)