Skip to main content

Move2DComponent Class

Component for 2D physics-based movement. More...

Declaration

class helios::engine::modules::physics::motion::components::Move2DComponent { ... }

Public Constructors Index

Move2DComponent ()=default

Default constructor with default physics parameters. More...

Move2DComponent (float movementSpeed, float movementAcceleration=DEFAULT_MOVEMENT_ACCELERATION)

Constructs a Move2DComponent with a specified movement speed. More...

Move2DComponent (float movementSpeed, bool useInstantAcceleration)

Constructs a Move2DComponent with instant acceleration mode. More...

Move2DComponent (const Move2DComponent &other)

Copy constructor. More...

Move2DComponent (Move2DComponent &&) noexcept=default

Public Operators Index

Move2DComponent &operator= (const Move2DComponent &)=default
Move2DComponent &operator= (Move2DComponent &&) noexcept=default

Public Member Functions Index

boolisEnabled () const noexcept

Checks whether this component is enabled. More...

voidenable () noexcept

Enables this component. More...

voiddisable () noexcept

Disables this component. More...

voidmove (helios::math::vec3f direction, float throttle)

Sets the movement direction and throttle. More...

voidsetMoveIntent (helios::math::vec3f direction, float throttle)

Sets the movement direction and throttle. More...

voidreset ()

Resets this component's properties to default values. More...

voidonAcquire () noexcept

Calls reset() when this Component is acquired. More...

voidonRelease () noexcept

Calls reset() when this Component is released. More...

booluseInstantAcceleration () const noexcept

Returns whether instant acceleration mode is enabled. More...

voidsetUseInstantAcceleration (const bool useInstantAcceleration) noexcept

Sets the instant acceleration mode. More...

voidsetInheritedVelocity (helios::math::vec3f inheritedVelocity)

Sets the inherited velocity from parent or external forces. More...

helios::math::vec3finheritedVelocity () const noexcept

Returns the inherited velocity vector. More...

voidsetVelocity (helios::math::vec3f velocity) noexcept

Sets the current velocity vector. More...

floatcurrentMovementSpeed () const noexcept

Returns the current movement speed. More...

voidsetCurrentMovementSpeed (float speed) noexcept

Sets the current movement speed. More...

boolstateChanged () const noexcept

Checks if input is currently active. More...

const helios::math::vec2f &direction () const noexcept

Returns the current steering input direction. More...

floatthrottle () const noexcept

Returns the current throttle value (0.0 to 1.0). More...

const helios::math::vec3f &velocity () const noexcept

Returns the current velocity vector. More...

floatspeedRatio () const noexcept

Returns the current speed as a ratio of maximum speed. More...

floatmovementSpeedThreshold () const noexcept

Returns the minimum movement speed threshold. More...

floatmovementAcceleration () const noexcept

Returns the movement acceleration in units per second squared. More...

floatmovementSpeed () const noexcept

Returns the maximum movement speed in units per second. More...

floatmovementDampening () const noexcept

Returns the movement dampening factor. More...

voidsetMovementSpeedThreshold (float value) noexcept

Sets the minimum movement speed threshold. More...

voidsetMovementAcceleration (float value) noexcept

Sets the movement acceleration in units per second squared. More...

voidsetMovementSpeed (float value) noexcept

Sets the maximum movement speed in units per second. More...

voidsetMovementDampening (float value) noexcept

Sets the movement dampening factor. More...

voidresetToDefaults () noexcept

Resets all physics parameters to their default values. More...

Protected Member Attributes Index

floatmovementSpeedThreshold_ = DEFAULT_MOVEMENT_SPEED_THRESHOLD

Minimum movement speed before the ship stops completely. More...

floatmovementAcceleration_ = DEFAULT_MOVEMENT_ACCELERATION

Movement acceleration in units per second squared. More...

floatmovementSpeed_ = DEFAULT_MOVEMENT_SPEED

Base movement speed in units per second. More...

floatmovementDampening_ = DEFAULT_MOVEMENT_DAMPENING

Exponential decay factor for movement when input stops. More...

floatcurrentMovementSpeed_ = 0.0f

Current movement speed after applying input and dampening. More...

boolstateChanged_ = true

Indicates whether input is currently being received. More...

floatthrottle_ = 0.0f

Current throttle value from input (0.0 to 1.0). More...

helios::math::vec2fdirection_

Current steering input as 2D direction vector. More...

helios::math::vec3fvelocity_

Current velocity vector in world space. More...

helios::math::vec3finheritedVelocity_ {0.0f}

Inherited velocity from parent or external forces. More...

booluseInstantAcceleration_ = false

Flag for instant acceleration mode. More...

boolisEnabled_ = true

Whether this component is enabled. More...

Protected Static Attributes Index

static constexpr floatDEFAULT_MOVEMENT_SPEED_THRESHOLD = 0.1f

Default minimum movement speed before the ship stops completely. More...

static constexpr floatDEFAULT_MOVEMENT_ACCELERATION = 30.0f

Default movement acceleration in units per second squared. More...

static constexpr floatDEFAULT_MOVEMENT_SPEED = 30.0f

Default base movement speed in units per second. More...

static constexpr floatDEFAULT_MOVEMENT_DAMPENING = 0.1f

Default exponential decay factor for movement when input stops. More...

Description

Component for 2D physics-based movement.

Stores configuration and runtime state for 2D physics-based movement. This component is used by the Move2DSystem to apply smooth acceleration and deceleration to the entity.

The component receives input via move() which sets target direction and throttle. The actual physics simulation (integration of velocity, application of dampening) is performed by the Move2DSystem.

info

Rotation/heading is handled separately by SteeringComponent and SteeringSystem.

See Also

helios::engine::modules::physics::motion::components::SteeringComponent

See Also

helios::engine::modules::physics::systems::Move2DSystem

Definition at line 43 of file Move2DComponent.ixx.

Public Constructors

Move2DComponent()

helios::engine::modules::physics::motion::components::Move2DComponent::Move2DComponent ()
default

Default constructor with default physics parameters.

Definition at line 179 of file Move2DComponent.ixx.

Referenced by Move2DComponent, Move2DComponent, operator= and operator=.

Move2DComponent()

helios::engine::modules::physics::motion::components::Move2DComponent::Move2DComponent (float movementSpeed, float movementAcceleration=DEFAULT_MOVEMENT_ACCELERATION)
inline explicit

Constructs a Move2DComponent with a specified movement speed.

Parameters
movementSpeed

The maximum movement speed in units per second.

movementAcceleration

The acceleration rate (default: DEFAULT_MOVEMENT_ACCELERATION).

Definition at line 187 of file Move2DComponent.ixx.

References DEFAULT_MOVEMENT_ACCELERATION, movementAcceleration, movementAcceleration_, movementSpeed and movementSpeed_.

Move2DComponent()

helios::engine::modules::physics::motion::components::Move2DComponent::Move2DComponent (float movementSpeed, bool useInstantAcceleration)
inline explicit

Constructs a Move2DComponent with instant acceleration mode.

Parameters
movementSpeed

The maximum movement speed in units per second.

useInstantAcceleration

If true, acceleration is instant.

Definition at line 200 of file Move2DComponent.ixx.

References movementSpeed, movementSpeed_, useInstantAcceleration and useInstantAcceleration_.

Move2DComponent()

helios::engine::modules::physics::motion::components::Move2DComponent::Move2DComponent (const Move2DComponent & other)
inline

Move2DComponent()

helios::engine::modules::physics::motion::components::Move2DComponent::Move2DComponent (Move2DComponent &&)
noexcept default

Definition at line 221 of file Move2DComponent.ixx.

Reference Move2DComponent.

Public Operators

operator=()

Move2DComponent & helios::engine::modules::physics::motion::components::Move2DComponent::operator= (const Move2DComponent &)
default

Definition at line 220 of file Move2DComponent.ixx.

Reference Move2DComponent.

operator=()

Move2DComponent & helios::engine::modules::physics::motion::components::Move2DComponent::operator= (Move2DComponent &&)
noexcept default

Definition at line 222 of file Move2DComponent.ixx.

Reference Move2DComponent.

Public Member Functions

currentMovementSpeed()

float helios::engine::modules::physics::motion::components::Move2DComponent::currentMovementSpeed ()
inline nodiscard noexcept

Returns the current movement speed.

Returns

The current movement speed.

Definition at line 342 of file Move2DComponent.ixx.

342 [[nodiscard]] float currentMovementSpeed() const noexcept {
344 }

Reference currentMovementSpeed_.

direction()

const helios::math::vec2f & helios::engine::modules::physics::motion::components::Move2DComponent::direction ()
inline nodiscard noexcept

Returns the current steering input direction.

Returns

Const reference to the 2D steering input vector.

Definition at line 369 of file Move2DComponent.ixx.

369 [[nodiscard]] const helios::math::vec2f& direction() const noexcept {
370 return direction_;
371 }

Reference direction_.

Referenced by helios::engine::runtime::spawn::behavior::initializers::RandomDirectionInitializer::initialize, move and setMoveIntent.

disable()

void helios::engine::modules::physics::motion::components::Move2DComponent::disable ()
inline noexcept

Disables this component.

Definition at line 172 of file Move2DComponent.ixx.

172 void disable() noexcept {
173 isEnabled_ = false;
174 }

Reference isEnabled_.

enable()

void helios::engine::modules::physics::motion::components::Move2DComponent::enable ()
inline noexcept

Enables this component.

Definition at line 165 of file Move2DComponent.ixx.

165 void enable() noexcept {
166 isEnabled_ = true;
167 }

Reference isEnabled_.

inheritedVelocity()

helios::math::vec3f helios::engine::modules::physics::motion::components::Move2DComponent::inheritedVelocity ()
inline nodiscard noexcept

Returns the inherited velocity vector.

Returns

The inherited velocity from parent or external forces.

Definition at line 324 of file Move2DComponent.ixx.

324 [[nodiscard]] helios::math::vec3f inheritedVelocity() const noexcept {
325 return inheritedVelocity_;
326 }

Reference inheritedVelocity_.

Referenced by setInheritedVelocity.

isEnabled()

bool helios::engine::modules::physics::motion::components::Move2DComponent::isEnabled ()
inline nodiscard noexcept

Checks whether this component is enabled.

Returns

True if enabled, false otherwise.

Definition at line 158 of file Move2DComponent.ixx.

158 [[nodiscard]] bool isEnabled() const noexcept {
159 return isEnabled_;
160 }

Reference isEnabled_.

move()

void helios::engine::modules::physics::motion::components::Move2DComponent::move (helios::math::vec3f direction, float throttle)
inline

Sets the movement direction and throttle.

Parameters
direction

Normalized 3D direction vector.

throttle

Magnitude of the stick input (0.0 to 1.0).

Deprecated

use setMoveIntent

Definition at line 233 of file Move2DComponent.ixx.

233 void move(helios::math::vec3f direction, float throttle) {
235 }

References direction, move, setMoveIntent and throttle.

Referenced by helios::engine::runtime::spawn::behavior::initializers::RandomDirectionInitializer::initialize and move.

movementAcceleration()

float helios::engine::modules::physics::motion::components::Move2DComponent::movementAcceleration ()
inline nodiscard noexcept

Returns the movement acceleration in units per second squared.

Returns

Movement acceleration value.

Definition at line 420 of file Move2DComponent.ixx.

420 [[nodiscard]] float movementAcceleration() const noexcept { return movementAcceleration_; }

Reference movementAcceleration_.

Referenced by Move2DComponent.

movementDampening()

float helios::engine::modules::physics::motion::components::Move2DComponent::movementDampening ()
inline nodiscard noexcept

Returns the movement dampening factor.

Returns

Exponential decay factor for movement.

Definition at line 434 of file Move2DComponent.ixx.

434 [[nodiscard]] float movementDampening() const noexcept { return movementDampening_; }

Reference movementDampening_.

movementSpeed()

float helios::engine::modules::physics::motion::components::Move2DComponent::movementSpeed ()
inline nodiscard noexcept

Returns the maximum movement speed in units per second.

Returns

Maximum movement speed value.

Definition at line 427 of file Move2DComponent.ixx.

427 [[nodiscard]] float movementSpeed() const noexcept { return movementSpeed_; }

Reference movementSpeed_.

Referenced by Move2DComponent and Move2DComponent.

movementSpeedThreshold()

float helios::engine::modules::physics::motion::components::Move2DComponent::movementSpeedThreshold ()
inline nodiscard noexcept

Returns the minimum movement speed threshold.

Returns

Movement speed threshold below which movement stops.

Definition at line 413 of file Move2DComponent.ixx.

413 [[nodiscard]] float movementSpeedThreshold() const noexcept { return movementSpeedThreshold_; }

Reference movementSpeedThreshold_.

onAcquire()

void helios::engine::modules::physics::motion::components::Move2DComponent::onAcquire ()
inline noexcept

Calls reset() when this Component is acquired.

See Also

reset()

Definition at line 279 of file Move2DComponent.ixx.

279 void onAcquire() noexcept {
280 reset();
281 }

Reference reset.

onRelease()

void helios::engine::modules::physics::motion::components::Move2DComponent::onRelease ()
inline noexcept

Calls reset() when this Component is released.

See Also

reset()

Definition at line 288 of file Move2DComponent.ixx.

288 void onRelease() noexcept {
289 reset();
290 }

Reference reset.

reset()

void helios::engine::modules::physics::motion::components::Move2DComponent::reset ()
inline

Resets this component's properties to default values.

Definition at line 265 of file Move2DComponent.ixx.

265 void reset() {
267 stateChanged_ = true;
268 throttle_ = 0.0f;
269 direction_ = {};
270 velocity_ = {};
272 }

References currentMovementSpeed_, direction_, inheritedVelocity_, stateChanged_, throttle_ and velocity_.

Referenced by onAcquire and onRelease.

resetToDefaults()

void helios::engine::modules::physics::motion::components::Move2DComponent::resetToDefaults ()
inline noexcept

setCurrentMovementSpeed()

void helios::engine::modules::physics::motion::components::Move2DComponent::setCurrentMovementSpeed (float speed)
inline noexcept

Sets the current movement speed.

Parameters
speed

The new movement speed.

Definition at line 351 of file Move2DComponent.ixx.

351 void setCurrentMovementSpeed(float speed) noexcept {
353 }

Reference currentMovementSpeed_.

setInheritedVelocity()

void helios::engine::modules::physics::motion::components::Move2DComponent::setInheritedVelocity (helios::math::vec3f inheritedVelocity)
inline

Sets the inherited velocity from parent or external forces.

Parameters
inheritedVelocity

The velocity vector to inherit.

Definition at line 315 of file Move2DComponent.ixx.

References inheritedVelocity and inheritedVelocity_.

setMoveIntent()

void helios::engine::modules::physics::motion::components::Move2DComponent::setMoveIntent (helios::math::vec3f direction, float throttle)
inline

Sets the movement direction and throttle.

Parameters
direction

Normalized 3D direction vector.

throttle

Magnitude of the stick input (0.0 to 1.0).

Definition at line 243 of file Move2DComponent.ixx.

244
246 direction_ = helios::math::vec2f{0.0f, 0.0f};
247 throttle_ = 0.0f;
248 stateChanged_ = false;
249 return;
250 }
251
252 direction_ = direction.toVec2();
254
255 assert(direction_.isNormalized() && "Unexpected direction vector - not normalized");
256
257 stateChanged_ = true;
258
260 }

References currentMovementSpeed_, direction, direction_, helios::math::EPSILON_LENGTH, movementSpeed_, stateChanged_, throttle and throttle_.

Referenced by move.

setMovementAcceleration()

void helios::engine::modules::physics::motion::components::Move2DComponent::setMovementAcceleration (float value)
inline noexcept

Sets the movement acceleration in units per second squared.

Parameters
value

New acceleration value.

Definition at line 454 of file Move2DComponent.ixx.

454 void setMovementAcceleration(float value) noexcept { movementAcceleration_ = value; }

Reference movementAcceleration_.

setMovementDampening()

void helios::engine::modules::physics::motion::components::Move2DComponent::setMovementDampening (float value)
inline noexcept

Sets the movement dampening factor.

Parameters
value

New dampening factor (exponential decay).

Definition at line 468 of file Move2DComponent.ixx.

468 void setMovementDampening(float value) noexcept { movementDampening_ = value; }

Reference movementDampening_.

setMovementSpeed()

void helios::engine::modules::physics::motion::components::Move2DComponent::setMovementSpeed (float value)
inline noexcept

Sets the maximum movement speed in units per second.

Parameters
value

New maximum speed value.

Definition at line 461 of file Move2DComponent.ixx.

461 void setMovementSpeed(float value) noexcept { movementSpeed_ = value; }

Reference movementSpeed_.

setMovementSpeedThreshold()

void helios::engine::modules::physics::motion::components::Move2DComponent::setMovementSpeedThreshold (float value)
inline noexcept

Sets the minimum movement speed threshold.

Parameters
value

New threshold value.

Definition at line 446 of file Move2DComponent.ixx.

446 void setMovementSpeedThreshold(float value) noexcept { movementSpeedThreshold_ = value; }

Reference movementSpeedThreshold_.

setUseInstantAcceleration()

void helios::engine::modules::physics::motion::components::Move2DComponent::setUseInstantAcceleration (const bool useInstantAcceleration)
inline noexcept

Sets the instant acceleration mode.

Parameters
useInstantAcceleration

True to enable instant acceleration, false for smooth ramping.

Definition at line 306 of file Move2DComponent.ixx.

References useInstantAcceleration and useInstantAcceleration_.

setVelocity()

void helios::engine::modules::physics::motion::components::Move2DComponent::setVelocity (helios::math::vec3f velocity)
inline noexcept

Sets the current velocity vector.

Parameters
velocity

The new velocity vector.

Definition at line 333 of file Move2DComponent.ixx.

References velocity and velocity_.

speedRatio()

float helios::engine::modules::physics::motion::components::Move2DComponent::speedRatio ()
inline nodiscard noexcept

Returns the current speed as a ratio of maximum speed.

Returns

A value between 0.0 (stationary) and 1.0 (maximum speed).

Definition at line 396 of file Move2DComponent.ixx.

396 [[nodiscard]] float speedRatio() const noexcept {
397 // Prevent division by zero if movementSpeed_ is zero or very close to zero
399 return 0.0f;
400 }
401 return velocity_.length() / movementSpeed_;
402 }

References helios::math::EPSILON_LENGTH, movementSpeed_ and velocity_.

stateChanged()

bool helios::engine::modules::physics::motion::components::Move2DComponent::stateChanged ()
inline nodiscard noexcept

Checks if input is currently active.

Returns

True if input is active, false otherwise.

Definition at line 360 of file Move2DComponent.ixx.

360 [[nodiscard]] bool stateChanged() const noexcept {
361 return stateChanged_;
362 }

Reference stateChanged_.

throttle()

float helios::engine::modules::physics::motion::components::Move2DComponent::throttle ()
inline nodiscard noexcept

Returns the current throttle value (0.0 to 1.0).

Returns

Current throttle magnitude from input.

Definition at line 378 of file Move2DComponent.ixx.

378 [[nodiscard]] float throttle() const noexcept {
379 return throttle_;
380 }

Reference throttle_.

Referenced by move and setMoveIntent.

useInstantAcceleration()

bool helios::engine::modules::physics::motion::components::Move2DComponent::useInstantAcceleration ()
inline nodiscard noexcept

Returns whether instant acceleration mode is enabled.

Returns

True if acceleration is instant, false for smooth ramping.

Definition at line 297 of file Move2DComponent.ixx.

297 [[nodiscard]] bool useInstantAcceleration() const noexcept {
299 }

Reference useInstantAcceleration_.

Referenced by Move2DComponent and setUseInstantAcceleration.

velocity()

const helios::math::vec3f & helios::engine::modules::physics::motion::components::Move2DComponent::velocity ()
inline nodiscard noexcept

Returns the current velocity vector.

Returns

Const reference to the 3D velocity vector in world space.

Definition at line 387 of file Move2DComponent.ixx.

387 [[nodiscard]] const helios::math::vec3f& velocity() const noexcept {
388 return velocity_;
389 }

Reference velocity_.

Referenced by setVelocity.

Protected Member Attributes

currentMovementSpeed_

float helios::engine::modules::physics::motion::components::Move2DComponent::currentMovementSpeed_ = 0.0f
protected

Current movement speed after applying input and dampening.

Definition at line 108 of file Move2DComponent.ixx.

Referenced by currentMovementSpeed, reset, setCurrentMovementSpeed and setMoveIntent.

direction_

helios::math::vec2f helios::engine::modules::physics::motion::components::Move2DComponent::direction_
protected

Current steering input as 2D direction vector.

Definition at line 124 of file Move2DComponent.ixx.

Referenced by direction, reset and setMoveIntent.

inheritedVelocity_

helios::math::vec3f helios::engine::modules::physics::motion::components::Move2DComponent::inheritedVelocity_ {0.0f}
protected

Inherited velocity from parent or external forces.

Used for momentum inheritance when detaching from parent objects.

Definition at line 136 of file Move2DComponent.ixx.

Referenced by inheritedVelocity, reset and setInheritedVelocity.

isEnabled_

bool helios::engine::modules::physics::motion::components::Move2DComponent::isEnabled_ = true
protected

Whether this component is enabled.

Definition at line 149 of file Move2DComponent.ixx.

149 bool isEnabled_ = true;

Referenced by disable, enable and isEnabled.

movementAcceleration_

float helios::engine::modules::physics::motion::components::Move2DComponent::movementAcceleration_ = DEFAULT_MOVEMENT_ACCELERATION
protected

Movement acceleration in units per second squared.

Definition at line 88 of file Move2DComponent.ixx.

Referenced by Move2DComponent, Move2DComponent, movementAcceleration, resetToDefaults and setMovementAcceleration.

movementDampening_

float helios::engine::modules::physics::motion::components::Move2DComponent::movementDampening_ = DEFAULT_MOVEMENT_DAMPENING
protected

Exponential decay factor for movement when input stops.

Definition at line 99 of file Move2DComponent.ixx.

Referenced by Move2DComponent, movementDampening, resetToDefaults and setMovementDampening.

movementSpeed_

float helios::engine::modules::physics::motion::components::Move2DComponent::movementSpeed_ = DEFAULT_MOVEMENT_SPEED
protected

Base movement speed in units per second.

Definition at line 93 of file Move2DComponent.ixx.

Referenced by Move2DComponent, Move2DComponent, Move2DComponent, movementSpeed, resetToDefaults, setMoveIntent, setMovementSpeed and speedRatio.

movementSpeedThreshold_

float helios::engine::modules::physics::motion::components::Move2DComponent::movementSpeedThreshold_ = DEFAULT_MOVEMENT_SPEED_THRESHOLD
protected

Minimum movement speed before the ship stops completely.

Definition at line 83 of file Move2DComponent.ixx.

Referenced by Move2DComponent, movementSpeedThreshold, resetToDefaults and setMovementSpeedThreshold.

stateChanged_

bool helios::engine::modules::physics::motion::components::Move2DComponent::stateChanged_ = true
protected

Indicates whether input is currently being received.

Definition at line 113 of file Move2DComponent.ixx.

113 bool stateChanged_ = true;

Referenced by reset, setMoveIntent and stateChanged.

throttle_

float helios::engine::modules::physics::motion::components::Move2DComponent::throttle_ = 0.0f
protected

Current throttle value from input (0.0 to 1.0).

Definition at line 119 of file Move2DComponent.ixx.

119 float throttle_ = 0.0f;

Referenced by reset, setMoveIntent and throttle.

useInstantAcceleration_

bool helios::engine::modules::physics::motion::components::Move2DComponent::useInstantAcceleration_ = false
protected

Flag for instant acceleration mode.

When true, the entity accelerates instantly to target speed rather than smoothly ramping up.

Definition at line 144 of file Move2DComponent.ixx.

Referenced by Move2DComponent, Move2DComponent, setUseInstantAcceleration and useInstantAcceleration.

velocity_

helios::math::vec3f helios::engine::modules::physics::motion::components::Move2DComponent::velocity_
protected

Current velocity vector in world space.

Definition at line 129 of file Move2DComponent.ixx.

Referenced by reset, setVelocity, speedRatio and velocity.

Protected Static Attributes

DEFAULT_MOVEMENT_ACCELERATION

float helios::engine::modules::physics::motion::components::Move2DComponent::DEFAULT_MOVEMENT_ACCELERATION = 30.0f
constexpr protected static

Default movement acceleration in units per second squared.

Definition at line 62 of file Move2DComponent.ixx.

62 static constexpr float DEFAULT_MOVEMENT_ACCELERATION = 30.0f;

Referenced by Move2DComponent and resetToDefaults.

DEFAULT_MOVEMENT_DAMPENING

float helios::engine::modules::physics::motion::components::Move2DComponent::DEFAULT_MOVEMENT_DAMPENING = 0.1f
constexpr protected static

Default exponential decay factor for movement when input stops.

Definition at line 73 of file Move2DComponent.ixx.

73 static constexpr float DEFAULT_MOVEMENT_DAMPENING = 0.1f;

Referenced by resetToDefaults.

DEFAULT_MOVEMENT_SPEED

float helios::engine::modules::physics::motion::components::Move2DComponent::DEFAULT_MOVEMENT_SPEED = 30.0f
constexpr protected static

Default base movement speed in units per second.

Definition at line 67 of file Move2DComponent.ixx.

67 static constexpr float DEFAULT_MOVEMENT_SPEED = 30.0f;

Referenced by resetToDefaults.

DEFAULT_MOVEMENT_SPEED_THRESHOLD

float helios::engine::modules::physics::motion::components::Move2DComponent::DEFAULT_MOVEMENT_SPEED_THRESHOLD = 0.1f
constexpr protected static

Default minimum movement speed before the ship stops completely.

Definition at line 56 of file Move2DComponent.ixx.

56 static constexpr float DEFAULT_MOVEMENT_SPEED_THRESHOLD = 0.1f;

Referenced by resetToDefaults.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.