VR-Engage  2.3
Loading...
Searching...
No Matches
vortexMovementActuatorDescriptor.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vortexMovementActuatorDescriptor.h
7//! \brief Defines DtVortexMovementActuatorDescriptor for Vortex physics-based movement simulation
8//! \ingroup vreVrfVortexObjparam
9
10#pragma once
11
16
17#include <vrfobjparam/actuatorComponentDescriptor.h>
18#include <vrfutil/rwResource.h>
19#include <readerWriter/rwReal.h>
20
21//! \brief Type identifier string for the DtVortexMovementActuatorDescriptor class
22const char DtVortexMovementActuatorDescriptorType[] = "vortex-movement-actuator-descriptor";
23
24//! \brief Descriptor for Vortex physics-based movement simulation
25//!
26//! DtVortexMovementActuatorDescriptor provides configuration for a Vortex physics-based
27//! movement actuator. It stores the mechanism name, articulated part mappings, interface
28//! descriptors, and configuration parameters for the Vortex physics engine. It also defines
29//! various thresholds for position, orientation, velocity, and other physics properties
30//! that control when updates are triggered.
31//!
32//! This descriptor is used for configuring vehicle movement and other entity physics
33//! in the simulation using the Vortex physics engine.
34class VREVRFVORTEXOBJPARAM_DLL DtVortexMovementActuatorDescriptor : public DtActuatorComponentDescriptor
35{
36private:
37 //! \brief Default constructor (not implemented)
38 //!
39 //! Private to prevent use - requires component name
41
42public:
43 //! \brief Constructor with component name and registry
44 //! \param componentName Name of the actuator component
45 //! \param parentRegistry Optional parent registry for reader/writer operations
46 DtVortexMovementActuatorDescriptor(const DtString& componentName, DtReaderWriterRegistry* parentRegistry = 0);
47
48 //! \brief Constructor with symbol component name and registry
49 //! \param componentName Symbol string name of the actuator component
50 //! \param parentRegistry Optional parent registry for reader/writer operations
51 DtVortexMovementActuatorDescriptor(const DtSymbolString& componentName,
52 DtReaderWriterRegistry* parentRegistry = NULL);
53
54 //! \brief Copy constructor
55 //! \param orig Original actuator descriptor to copy from
56 //! \param parentRegistry Optional parent registry for reader/writer operations
58 DtReaderWriterRegistry* parentRegistry = 0);
59
60 //! \brief Virtual destructor
62
63 //! \brief Assignment operator
64 //! \param orig Original actuator descriptor to copy from
65 //! \return Reference to this actuator descriptor after assignment
67
68 //! \brief Gets the type of this component descriptor
69 //! \return The type string for this component descriptor
70 //!
71 //! Implementation of the DtComponentDescriptor::type() method
72 virtual DtString type() const override;
73
74 //! \brief Creates a clone of this actuator descriptor
75 //! \param parentRegistry Optional parent registry for reader/writer operations
76 //! \return Pointer to a new descriptor that is a copy of this one
77 //!
78 //! Implementation of the DtComponentDescriptor::clone() method
79 virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
80
81 //! \brief Factory method for creating instances of this class
82 //! \return Pointer to a new default instance of this descriptor
83 //!
84 //! Implementation of the DtComponentDescriptor::creator() method
85 static DtComponentDescriptor* creator();
86
87 //! \brief Gets the name of the Vortex mechanism
88 //! \return The name of the mechanism file used by this actuator
89 virtual std::string mechanismName() const;
90
91 //! \brief Sets the name of the Vortex mechanism
92 //! \param name The name of the mechanism file to use
93 virtual void setMechanismName(const std::string& name);
94
95 //! \brief Sets the list of Vortex articulated part descriptors
96 //! \param artPartDescriptorList The list of articulated part descriptors to set
97 //!
98 //! Defines the articulated parts that will be mapped to Vortex physics components
100
101 //! \brief Gets the list of Vortex articulated part descriptors
102 //! \return Constant reference to the list of articulated part descriptors
104
105 //! \brief Sets the list of Vortex interface descriptors
106 //! \param interfaceDescriptorList The list of interface descriptors to set
107 //!
108 //! Defines the interfaces for communication with the Vortex physics engine
110 const makVre::DtVortexInterfaceDescriptorList& interfaceDescriptorList);
111
112 //! \brief Gets the list of Vortex interface descriptors
113 //! \return Constant reference to the list of interface descriptors
115
116 //! \brief Sets the Vortex configuration descriptor
117 //! \param configurationDescriptor The configuration descriptor to set
118 //!
119 //! Defines the configuration parameters for the Vortex physics engine
121 const makVre::DtVortexConfigurationDescriptor& configurationDescriptor);
122
123 //! \brief Gets the Vortex configuration descriptor
124 //! \return Constant reference to the configuration descriptor
126
127 //! \brief Gets the position threshold value
128 //! \return The threshold value for position updates in meters
129 //!
130 //! Position changes below this threshold will not trigger updates
131 virtual double positionThreshold() const;
132
133 //! \brief Sets the position threshold value
134 //! \param val The threshold value to set for position updates in meters
135 virtual void setPositionThreshold(double val);
136
137 //! \brief Gets the orientation threshold value
138 //! \return The threshold value for orientation updates in radians
139 //!
140 //! Orientation changes below this threshold will not trigger updates
141 virtual double orientationThreshold() const;
142
143 //! \brief Sets the orientation threshold value
144 //! \param val The threshold value to set for orientation updates in radians
145 virtual void setOrientationThreshold(double val);
146
147 //! \brief Gets the velocity threshold value
148 //! \return The threshold value for velocity updates in meters per second
149 //!
150 //! Velocity changes below this threshold will not trigger updates
151 virtual double velocityThreshold() const;
152
153 //! \brief Sets the velocity threshold value
154 //! \param val The threshold value to set for velocity updates in meters per second
155 virtual void setVelocityThreshold(double val);
156
157 //! \brief Gets the angular velocity threshold value
158 //! \return The threshold value for angular velocity updates in radians per second
159 //!
160 //! Angular velocity changes below this threshold will not trigger updates
161 virtual double angularVelocityThreshold() const;
162
163 //! \brief Sets the angular velocity threshold value
164 //! \param val The threshold value to set for angular velocity updates in radians per second
165 virtual void setAngularVelocityThreshold(double val);
166
167 //! \brief Gets the acceleration threshold value
168 //! \return The threshold value for acceleration updates in meters per second squared
169 //!
170 //! Acceleration changes below this threshold will not trigger updates
171 virtual double accelerationThreshold() const;
172
173 //! \brief Sets the acceleration threshold value
174 //! \param val The threshold value to set for acceleration updates in meters per second squared
175 virtual void setAccelerationThreshold(double val);
176
177 //! \brief Gets the articulated part position threshold value
178 //! \return The threshold value for part position updates in meters
179 //!
180 //! Part position changes below this threshold will not trigger updates
181 virtual double partPositionThreshold() const;
182
183 //! \brief Sets the articulated part position threshold value
184 //! \param val The threshold value to set for part position updates in meters
185 virtual void setPartPositionThreshold(double val);
186
187 //! \brief Gets the articulated part orientation threshold value
188 //! \return The threshold value for part orientation updates in radians
189 //!
190 //! Part orientation changes below this threshold will not trigger updates
191 virtual double partOrientationThreshold() const;
192
193 //! \brief Sets the articulated part orientation threshold value
194 //! \param val The threshold value to set for part orientation updates in radians
195 virtual void setPartOrientationThreshold(double val);
196
197 //! \brief Gets the articulated part velocity threshold value
198 //! \return The threshold value for part velocity updates in meters per second
199 //!
200 //! Part velocity changes below this threshold will not trigger updates
201 virtual double partVelocityThreshold() const;
202
203 //! \brief Sets the articulated part velocity threshold value
204 //! \param val The threshold value to set for part velocity updates in meters per second
205 virtual void setPartVelocityThreshold(double val);
206
207 //! \brief Gets the articulated part angular velocity threshold value
208 //! \return The threshold value for part angular velocity updates in radians per second
209 //!
210 //! Part angular velocity changes below this threshold will not trigger updates
211 virtual double partAngularVelocityThreshold() const;
212
213 //! \brief Sets the articulated part angular velocity threshold value
214 //! \param val The threshold value to set for part angular velocity updates in radians per second
215 virtual void setPartAngularVelocityThreshold(double val);
216
217 //! \brief Gets the extended data threshold value
218 //! \return The threshold value for extended data updates
219 //!
220 //! Extended data changes below this threshold will not trigger updates
221 virtual double extendedDataThreshold() const;
222
223 //! \brief Sets the extended data threshold value
224 //! \param val The threshold value to set for extended data updates
225 virtual void setExtendedDataThreshold(double val);
226
227 //! \brief Sets whether to use articulated part wheel positions
228 //! \param yesNo True to use wheel positions from articulated parts, false to use positions from Vortex model
229 //!
230 //! When true, wheel positions in the Vortex model will be adjusted to match the positions
231 //! specified in articulated parts. When false, the wheel positions in the Vortex model
232 //! are used as-is. Default is true.
233 virtual void setUseArtPartWheelPositions(const bool yesNo);
234
235 //! \brief Checks if articulated part wheel positions are being used
236 //! \return True if wheel positions from articulated parts are being used, false otherwise
237 virtual bool useArtPartWheelPositions() const;
238
239 //! \brief Gets the initial suspension offset applied to tracked-vehicle sprockets and track wheels
240 //!
241 //! \return Distance in meters that lowers each sprocket and track wheel in Vortex coordinates
242 //!
243 //! This offset is applied after sprocket and track-wheel positions are initialized
244 //! from their articulated parts. Positive values lower the sprockets and track
245 //! wheels to align a tracked vehicle's visual treads with the terrain.
246 //! The default offset is 0.07 meters.
247 virtual double initialSuspensionOffset() const;
248
249 //! \brief Sets the initial suspension offset applied to tracked-vehicle sprockets and track wheels
250 //!
251 //! \param offset Distance in meters that lowers each sprocket and track wheel in Vortex coordinates
252 virtual void setInitialSuspensionOffset(double offset);
253
254 //! \brief Sets whether to use mass from the entity
255 //! \param yesNo True to use mass from entity definition, false to use mass from Vortex model
256 //!
257 //! When true, the Vortex model will use the mass value specified in the entity definition.
258 //! When false, the mass value defined in the Vortex mechanism model is used as-is.
259 virtual void setUseMassFromEntity(const bool yesNo);
260
261 //! \brief Checks if entity mass is being used instead of Vortex model mass
262 //! \return True if mass from entity definition is being used, false if Vortex model mass is used
263 virtual bool useMassFromEntity() const;
264
265 //! \brief Gets the fuel efficiency value
266 //! \return The fuel efficiency value in fuel units per distance traveled
267 //!
268 //! Determines how much fuel is consumed when a ground vehicle moves
269 virtual double fuelEfficiency() const;
270
271 //! \brief Sets the fuel efficiency value
272 //! \param d The fuel efficiency value in fuel units per distance traveled
273 virtual void setFuelEfficiency(double d);
274
275 //! \brief Gets the additional height to add when dropping a vehicle above terrain
276 //! \return The additional drop height in meters (default: 0.5)
277 //!
278 //! This value is used by dropAboveTerrain() to position the vehicle slightly above
279 //! the calculated terrain height to prevent the vehicle from getting stuck in or
280 //! clipping through the terrain surface.
281 //!
282 //! \see setAdditionalDropHeight()
283 //! \see DtVortexMovementActuator::dropAboveTerrain()
284 virtual double additionalDropHeight() const;
285
286 //! \brief Sets the additional height to add when dropping a vehicle above terrain
287 //! \param d The additional drop height in meters (default: 0.5)
288 //!
289 //! Configures the vertical offset added to the terrain height when positioning
290 //! a vehicle using dropAboveTerrain(). This ensures the vehicle spawns slightly
291 //! above the terrain to avoid intersection issues.
292 //!
293 //! \see additionalDropHeight()
294 //! \see DtVortexMovementActuator::dropAboveTerrain()
295 virtual void setAdditionalDropHeight(double d);
296
297 //! \brief Gets the Vortex physics disable delay in seconds
298 //! \return Seconds to wait before disabling Vortex physics
299 //!
300 //! A value of zero disables Vortex physics immediately. Enabling Vortex physics is always
301 //! immediate. Negative configured values are treated as zero.
302 virtual double vortexPhysicsDisableDelaySeconds() const;
303
304 //! \brief Sets the Vortex physics disable delay in seconds
305 //! \param seconds Seconds to wait before disabling Vortex physics
306 //!
307 //! Delaying the transition prevents transient role-state changes from causing a Vortex
308 //! physics disable followed immediately by an enable. Vortex physics is always enabled
309 //! immediately. Negative values are stored as zero.
310 virtual void setVortexPhysicsDisableDelaySeconds(double seconds);
311
312 //! Accessor/mutator for #myFuelType.
313 //! @{
314 virtual const DtEntityType& fuelType() const;
315 virtual void setFuelType(const DtEntityType& fuelType);
316 //! @}
317
318 //! \brief Gets the allow-vortex-while-destroyed flag
319 //! \return True if Vortex physics should continue for destroyed entities, false otherwise
320 //!
321 //! When this flag is true, Vortex physics simulation will remain active even when
322 //! the entity is destroyed or mobility-killed. This allows for realistic physics
323 //! behavior of destroyed vehicles (e.g., continued rolling, settling, debris physics).
324 //!
325 //! When false (default), Vortex control is disabled for destroyed or mobility-killed
326 //! entities, and the entity uses standard movement behavior.
327 //!
328 //! \note Default value is false.
329 //! \see setAllowVortexWhileDestroyed()
330 virtual bool allowVortexWhileDestroyed() const;
331
332 //! \brief Sets the allow-vortex-while-destroyed flag
333 //! \param allow True to allow Vortex physics for destroyed entities, false to disable
334 //!
335 //! Controls whether Vortex physics simulation continues when the entity is destroyed
336 //! or mobility-killed. Set to true to enable realistic post-destruction physics
337 //! (vehicle settling, rolling, etc.). Set to false to use standard movement behavior
338 //! for destroyed entities.
339 //!
340 //! This setting is read during the actuator's initialization phase and stored in
341 //! the actuator's myAllowVortexWhileDestroyed member variable.
342 //!
343 //! \note The default is false, which disables Vortex for destroyed entities.
344 //! \see allowVortexWhileDestroyed()
345 virtual void setAllowVortexWhileDestroyed(bool allow);
346
347 //! \brief Gets the detect-terrain-fallthrough flag
348 //! \return True if terrain fallthrough detection is enabled, false otherwise
349 //!
350 //! When this flag is true, the actuator will check for terrain availability during
351 //! Vortex simulation and log diagnostic information when the vehicle falls through
352 //! the terrain due to missing terrain data.
353 //!
354 //! When false (default), terrain fallthrough detection is disabled.
355 //!
356 //! \note Default value is false.
357 //! \see setDetectTerrainFallthrough()
358 virtual bool detectTerrainFallthrough() const;
359
360 //! \brief Sets the detect-terrain-fallthrough flag
361 //! \param detect True to enable terrain fallthrough detection, false to disable
362 //!
363 //! Controls whether the actuator monitors for terrain fallthrough conditions.
364 //! When enabled, the actuator will check terrain availability and log warnings
365 //! when the vehicle position indicates a fall-through scenario.
366 //!
367 //! This setting is read during the actuator's initialization phase.
368 //!
369 //! \note The default is false, which disables fallthrough detection.
370 //! \see detectTerrainFallthrough()
371 virtual void setDetectTerrainFallthrough(bool detect);
372
373protected:
374 //! \brief The name of the Vortex mechanism file
376
377 //! \brief Flag indicating whether to use wheel positions from articulated parts
379
380 //! \brief Distance in meters to lower tracked-vehicle sprockets and track wheels after art-part initialization
382
383 //! \brief Flag indicating whether to use wheel positions from articulated parts
385
386 //! \brief List of articulated part descriptors for Vortex physics
388
389 //! \brief List of interface descriptors for communication with Vortex
391
392 //! \brief Configuration descriptor for Vortex physics parameters
394
395 //! \brief Threshold for vehicle position updates in meters
397
398 //! \brief Threshold for vehicle orientation updates in radians
400
401 //! \brief Threshold for vehicle velocity updates in meters per second
403
404 //! \brief Threshold for vehicle angular velocity updates in radians per second
406
407 //! \brief Threshold for articulated part position updates in meters
409
410 //! \brief Threshold for articulated part orientation updates in radians
412
413 //! \brief Threshold for vehicle acceleration updates in meters per second squared
415
416 //! \brief Threshold for articulated part velocity updates in meters per second
418
419 //! \brief Threshold for articulated part angular velocity updates in radians per second
421
422 //! Parameter Name: fuel-type\n
423 //! Parameter Description: The fuel that will be consumed by the surface vessel.\n
424 //! Parameter Default Value: 6:3:0:2:1:0:0 Gasoline\n
425 //! Parameter Units: Entity Type\n
426 DtRwResource myFuelType;
427
428 //! \brief Fuel efficiency value in fuel units per distance traveled
429 //!
430 //! When a ground vehicle moves, this determines how much fuel is consumed.
431 //! The value is dependent on the unit of measurement of the resource.
432 //! Default value is 100.
434
435 //! \brief Threshold for extended data updates
436 //!
437 //! Controls the rate at which extended data changes trigger updates.
439
440 //! \brief Controls whether Vortex physics continues for destroyed entities
441 //!
442 //! When true, Vortex physics simulation remains active even when the entity
443 //! is destroyed or mobility-killed. When false (default), Vortex control
444 //! is disabled for destroyed or mobility-killed entities.
445 //!
446 //! This setting allows for realistic post-destruction physics behavior, such as
447 //! a destroyed vehicle continuing to roll down a hill or settle into position.
448 //!
449 //! The value is read by DtVortexMovementActuator during initialization and
450 //! affects the entity's physics simulation behavior.
451 //!
452 //! \note Default value is false.
453 //! \see allowVortexWhileDestroyed()
454 //! \see setAllowVortexWhileDestroyed()
456
457 //! \brief Controls whether terrain fallthrough detection is enabled
458 //!
459 //! When true, the actuator monitors terrain availability during Vortex simulation
460 //! and logs diagnostic information when terrain fallthrough is detected. When false
461 //! (default), fallthrough detection is disabled.
462 //!
463 //! This setting is read by DtVortexMovementActuator during initialization and
464 //! controls whether detectTerrainFallthrough() is called during simulation.
465 //!
466 //! \note Default value is false.
467 //! \see detectTerrainFallthrough()
468 //! \see setDetectTerrainFallthrough()
470
471 //! \brief Additional height offset applied when dropping vehicles above terrain
472 //!
473 //! Specifies the vertical distance (in meters) to add above the calculated terrain
474 //! height when positioning a vehicle using dropAboveTerrain(). This offset prevents
475 //! the vehicle from spawning at exactly the terrain surface level, which could cause
476 //! clipping or intersection issues with the terrain geometry.
477 //!
478 //! The value is used by DtVortexMovementActuator::dropAboveTerrain() to ensure
479 //! the vehicle's lowest bounding point is positioned slightly above the terrain.
480 //!
481 //! Sysdef parameter: `additional-drop-height`
482 //!
483 //! \note Default value is 0.5 meters.
484 //! \see additionalDropHeight()
485 //! \see setAdditionalDropHeight()
486 //! \see DtVortexMovementActuator::dropAboveTerrain()
488
489 //! \brief Delay before disabling Vortex physics
490 //!
491 //! Specifies the elapsed simulation time, in seconds, to wait after Vortex physics is
492 //! requested to disable. A value of zero preserves immediate disable transitions. Enabling
493 //! Vortex physics is always immediate.
494 //!
495 //! Sysdef parameter: `vortex-physics-disable-delay-seconds`
496 //! \note Default value is 2.0 seconds.
498};
virtual double partOrientationThreshold() const
Gets the articulated part orientation threshold value.
virtual void setAdditionalDropHeight(double d)
Sets the additional height to add when dropping a vehicle above terrain.
virtual bool useMassFromEntity() const
Checks if entity mass is being used instead of Vortex model mass.
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const override
Creates a clone of this actuator descriptor.
virtual void setPartAngularVelocityThreshold(double val)
Sets the articulated part angular velocity threshold value.
virtual void setPartVelocityThreshold(double val)
Sets the articulated part velocity threshold value.
virtual DtString type() const override
Gets the type of this component descriptor.
DtRwResource myFuelType
Parameter Name: fuel-type Parameter Description: The fuel that will be consumed by the surface vessel...
Definition vortexMovementActuatorDescriptor.h:426
makVre::DtVortexSimArtPartDescriptorList myVortexArtPartDescriptorList
List of articulated part descriptors for Vortex physics.
Definition vortexMovementActuatorDescriptor.h:387
virtual void setUseArtPartWheelPositions(const bool yesNo)
Sets whether to use articulated part wheel positions.
virtual void setUseMassFromEntity(const bool yesNo)
Sets whether to use mass from the entity.
virtual void setFuelEfficiency(double d)
Sets the fuel efficiency value.
virtual void setVortexConfigurationDescriptor(const makVre::DtVortexConfigurationDescriptor &configurationDescriptor)
Sets the Vortex configuration descriptor.
DtRwReal myPartOrientationThreshold
Threshold for articulated part orientation updates in radians.
Definition vortexMovementActuatorDescriptor.h:411
virtual double accelerationThreshold() const
Gets the acceleration threshold value.
virtual void setPartOrientationThreshold(double val)
Sets the articulated part orientation threshold value.
DtRwString myMechanismFilename
The name of the Vortex mechanism file.
Definition vortexMovementActuatorDescriptor.h:375
virtual void setInitialSuspensionOffset(double offset)
Sets the initial suspension offset applied to tracked-vehicle sprockets and track wheels.
virtual double partPositionThreshold() const
Gets the articulated part position threshold value.
virtual const makVre::DtVortexConfigurationDescriptor & vortexConfigurationDescriptor() const
Gets the Vortex configuration descriptor.
virtual void setVortexInterfaceDescriptorList(const makVre::DtVortexInterfaceDescriptorList &interfaceDescriptorList)
Sets the list of Vortex interface descriptors.
DtRwReal myPositionThreshold
Threshold for vehicle position updates in meters.
Definition vortexMovementActuatorDescriptor.h:396
DtRwReal myAngularVelocityThreshold
Threshold for vehicle angular velocity updates in radians per second.
Definition vortexMovementActuatorDescriptor.h:405
virtual bool useArtPartWheelPositions() const
Checks if articulated part wheel positions are being used.
virtual bool allowVortexWhileDestroyed() const
Gets the allow-vortex-while-destroyed flag.
virtual const makVre::DtVortexSimArtPartDescriptorList & vortexArtPartDescriptorList() const
Gets the list of Vortex articulated part descriptors.
DtRwReal myInitialSuspensionOffset
Distance in meters to lower tracked-vehicle sprockets and track wheels after art-part initialization.
Definition vortexMovementActuatorDescriptor.h:381
static DtComponentDescriptor * creator()
Factory method for creating instances of this class.
virtual double positionThreshold() const
Gets the position threshold value.
DtRwReal myPartPositionThreshold
Threshold for articulated part position updates in meters.
Definition vortexMovementActuatorDescriptor.h:408
virtual void setAllowVortexWhileDestroyed(bool allow)
Sets the allow-vortex-while-destroyed flag.
virtual void setPositionThreshold(double val)
Sets the position threshold value.
DtRwReal myVortexPhysicsDisableDelaySeconds
Delay before disabling Vortex physics.
Definition vortexMovementActuatorDescriptor.h:497
virtual void setOrientationThreshold(double val)
Sets the orientation threshold value.
virtual void setAngularVelocityThreshold(double val)
Sets the angular velocity threshold value.
DtVortexMovementActuatorDescriptor(const DtSymbolString &componentName, DtReaderWriterRegistry *parentRegistry=NULL)
Constructor with symbol component name and registry.
virtual void setPartPositionThreshold(double val)
Sets the articulated part position threshold value.
virtual double extendedDataThreshold() const
Gets the extended data threshold value.
virtual double vortexPhysicsDisableDelaySeconds() const
Gets the Vortex physics disable delay in seconds.
virtual bool detectTerrainFallthrough() const
Gets the detect-terrain-fallthrough flag.
virtual double angularVelocityThreshold() const
Gets the angular velocity threshold value.
virtual void setAccelerationThreshold(double val)
Sets the acceleration threshold value.
makVre::DtVortexConfigurationDescriptor myVortexConfigurationDescriptor
Configuration descriptor for Vortex physics parameters.
Definition vortexMovementActuatorDescriptor.h:393
virtual double orientationThreshold() const
Gets the orientation threshold value.
virtual std::string mechanismName() const
Gets the name of the Vortex mechanism.
virtual double fuelEfficiency() const
Gets the fuel efficiency value.
makVre::DtVortexInterfaceDescriptorList myVortexInterfaceDescriptorList
List of interface descriptors for communication with Vortex.
Definition vortexMovementActuatorDescriptor.h:390
virtual void setDetectTerrainFallthrough(bool detect)
Sets the detect-terrain-fallthrough flag.
virtual void setFuelType(const DtEntityType &fuelType)
Accessor/mutator for myFuelType.
virtual void setVelocityThreshold(double val)
Sets the velocity threshold value.
DtVortexMovementActuatorDescriptor(const DtString &componentName, DtReaderWriterRegistry *parentRegistry=0)
Constructor with component name and registry.
DtRwBoolean myDetectTerrainFallthrough
Controls whether terrain fallthrough detection is enabled.
Definition vortexMovementActuatorDescriptor.h:469
DtRwBoolean myUseMassFromEntity
Flag indicating whether to use wheel positions from articulated parts.
Definition vortexMovementActuatorDescriptor.h:384
DtRwReal myVelocityThreshold
Threshold for vehicle velocity updates in meters per second.
Definition vortexMovementActuatorDescriptor.h:402
virtual void setMechanismName(const std::string &name)
Sets the name of the Vortex mechanism.
DtRwReal myOrientationThreshold
Threshold for vehicle orientation updates in radians.
Definition vortexMovementActuatorDescriptor.h:399
virtual const DtEntityType & fuelType() const
Accessor/mutator for myFuelType.
virtual double initialSuspensionOffset() const
Gets the initial suspension offset applied to tracked-vehicle sprockets and track wheels.
DtVortexMovementActuatorDescriptor & operator=(const DtVortexMovementActuatorDescriptor &orig)
Assignment operator.
virtual ~DtVortexMovementActuatorDescriptor() override
Virtual destructor.
DtRwReal myAccelerationThreshold
Threshold for vehicle acceleration updates in meters per second squared.
Definition vortexMovementActuatorDescriptor.h:414
DtRwReal myExtendedDataThreshold
Threshold for extended data updates.
Definition vortexMovementActuatorDescriptor.h:438
virtual double additionalDropHeight() const
Gets the additional height to add when dropping a vehicle above terrain.
DtVortexMovementActuatorDescriptor(const DtVortexMovementActuatorDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0)
Copy constructor.
DtRwBoolean myUseArtPartWheelPositions
Flag indicating whether to use wheel positions from articulated parts.
Definition vortexMovementActuatorDescriptor.h:378
virtual double partVelocityThreshold() const
Gets the articulated part velocity threshold value.
DtVortexMovementActuatorDescriptor()
Default constructor (not implemented)
virtual void setVortexPhysicsDisableDelaySeconds(double seconds)
Sets the Vortex physics disable delay in seconds.
DtRwReal myPartLinearVelocityThreshold
Threshold for articulated part velocity updates in meters per second.
Definition vortexMovementActuatorDescriptor.h:417
virtual double partAngularVelocityThreshold() const
Gets the articulated part angular velocity threshold value.
DtRwBoolean myAllowVortexWhileDestroyed
Controls whether Vortex physics continues for destroyed entities.
Definition vortexMovementActuatorDescriptor.h:455
DtRwReal myAdditionalHeightToDrop
Additional height offset applied when dropping vehicles above terrain.
Definition vortexMovementActuatorDescriptor.h:487
virtual void setExtendedDataThreshold(double val)
Sets the extended data threshold value.
virtual const makVre::DtVortexInterfaceDescriptorList & vortexInterfaceDescriptorList() const
Gets the list of Vortex interface descriptors.
virtual double velocityThreshold() const
Gets the velocity threshold value.
DtRwReal myFuelEfficiency
Fuel efficiency value in fuel units per distance traveled.
Definition vortexMovementActuatorDescriptor.h:433
DtRwReal myPartAngularVelocityThreshold
Threshold for articulated part angular velocity updates in radians per second.
Definition vortexMovementActuatorDescriptor.h:420
virtual void setVortexArtPartDescriptorList(const makVre::DtVortexSimArtPartDescriptorList &artPartDescriptorList)
Sets the list of Vortex articulated part descriptors.
Descriptor for Vortex physics engine configurations.
Definition vortexConfigurationDescriptor.h:27
Collection of articulated part descriptors for Vortex physics simulation.
Definition vortexArtPartDescriptorList.h:27
Defines export macros for the vreVrfVortexObjparam library.
#define VREVRFVORTEXOBJPARAM_DLL
Definition export.h:19
DtRwTemplatedListPtr< DtVortexInterfaceDescriptor, true > DtVortexInterfaceDescriptorList
Type definition for a list of Vortex interface descriptors.
Definition vortexInterfaceDescriptor.h:108
Defines DtVortexSimArtPartDescriptorList for managing collections of Vortex articulated part descript...
Defines DtVortexConfigurationDescriptor for managing Vortex physics configuration parameters.
Defines DtVortexInterfaceDescriptor for managing Vortex interface parameters.
const char DtVortexMovementActuatorDescriptorType[]
Type identifier string for the DtVortexMovementActuatorDescriptor class.
Definition vortexMovementActuatorDescriptor.h:22