Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
MotorSettings.h File Reference

Go to the source code of this file.

Classes

class  MotorSettings
 

Enumerations

enum class  EMotorState { Off , Velocity , Position , PositionAndVelocity }
 

Functions

constexpr bool IsVelocityMotor (EMotorState inMotorState)
 
constexpr bool IsPositionMotor (EMotorState inMotorState)
 

Enumeration Type Documentation

◆ EMotorState

enum class EMotorState
strong
Enumerator
Off 

Motor is off.

Velocity 

Motor will drive to target velocity limited only by max force/torque that the motor can apply.

Position 

Motor will drive to target position using: force = stiffness * (target_position - current_position) - damping * current_velocity.

PositionAndVelocity 

Motor will drive both to target position and velocity using: force = stiffness * (target_position - current_position) + damping * (target_velocity - current_velocity)

Function Documentation

◆ IsPositionMotor()

bool IsPositionMotor ( EMotorState inMotorState)
constexpr

◆ IsVelocityMotor()

bool IsVelocityMotor ( EMotorState inMotorState)
constexpr