Soft-body physics and associated simulations.
More...
|
| Collisions |
| Static & dynamic collision detection system.
|
|
|
enum | RoR::BeamType : short { RoR::BEAM_NORMAL,
RoR::BEAM_HYDRO,
RoR::BEAM_VIRTUAL
} |
|
enum | RoR::SpecialBeam : short {
RoR::NOSHOCK,
RoR::SHOCK1,
RoR::SHOCK2,
RoR::SHOCK3,
RoR::TRIGGER,
RoR::SUPPORTBEAM,
RoR::ROPE
} |
|
enum | RoR::ShockFlags {
RoR::SHOCK_FLAG_NORMAL = BITMASK(1),
RoR::SHOCK_FLAG_LACTIVE = BITMASK(3),
RoR::SHOCK_FLAG_RACTIVE = BITMASK(4),
RoR::SHOCK_FLAG_ISSHOCK2 = BITMASK(5),
RoR::SHOCK_FLAG_ISSHOCK3 = BITMASK(6),
RoR::SHOCK_FLAG_SOFTBUMP = BITMASK(7),
RoR::SHOCK_FLAG_ISTRIGGER = BITMASK(8),
RoR::SHOCK_FLAG_TRG_BLOCKER = BITMASK(9),
RoR::SHOCK_FLAG_TRG_CMD_SWITCH = BITMASK(10),
RoR::SHOCK_FLAG_TRG_CMD_BLOCKER = BITMASK(11),
RoR::SHOCK_FLAG_TRG_BLOCKER_A = BITMASK(12),
RoR::SHOCK_FLAG_TRG_HOOK_UNLOCK = BITMASK(13),
RoR::SHOCK_FLAG_TRG_HOOK_LOCK = BITMASK(14),
RoR::SHOCK_FLAG_TRG_CONTINUOUS = BITMASK(15),
RoR::SHOCK_FLAG_TRG_ENGINE = BITMASK(16)
} |
|
enum | RoR::ActorState {
RoR::ActorState::LOCAL_SIMULATED,
RoR::ActorState::NETWORKED_OK,
RoR::ActorState::NETWORKED_HIDDEN,
RoR::ActorState::LOCAL_REPLAY,
RoR::ActorState::LOCAL_SLEEPING,
RoR::ActorState::DISPOSED
} |
|
enum | RoR::AeroEngineType { RoR::AeroEngineType::AE_UNKNOWN,
RoR::AeroEngineType::AE_XPROP,
RoR::AeroEngineType::AE_TURBOJET
} |
|
enum | RoR::FreeForceType { RoR::FreeForceType::DUMMY,
RoR::FreeForceType::CONSTANT,
RoR::FreeForceType::TOWARDS_COORDS,
RoR::FreeForceType::TOWARDS_NODE
} |
|
Soft-body physics and associated simulations.
◆ ActorState
Enumerator |
---|
LOCAL_SIMULATED | simulated (local) actor
|
NETWORKED_OK | not simulated (remote) actor
|
NETWORKED_HIDDEN | not simulated, not updated (remote)
|
LOCAL_REPLAY | |
LOCAL_SLEEPING | sleeping (local) actor
|
DISPOSED | removed from simulation, still in memory to satisfy pointers.
|
Definition at line 265 of file SimData.h.
◆ AeroEngineType
Enumerator |
---|
AE_UNKNOWN | |
AE_XPROP | |
AE_TURBOJET | |
Definition at line 275 of file SimData.h.
◆ BeamType
Enumerator |
---|
BEAM_NORMAL | |
BEAM_HYDRO | |
BEAM_VIRTUAL | Excluded from mass calculations, visuals permanently disabled.
|
Definition at line 69 of file SimData.h.
◆ FreeForceType
Enumerator |
---|
DUMMY | No force.
|
CONSTANT | Constant force given by direction and magnitude.
|
TOWARDS_COORDS | Constant force directed towards ffc_target_coords
|
TOWARDS_NODE | Constant force directed towards ffc_target_node
|
Definition at line 779 of file SimData.h.
◆ ShockFlags
Enumerator |
---|
SHOCK_FLAG_NORMAL | |
SHOCK_FLAG_LACTIVE | |
SHOCK_FLAG_RACTIVE | |
SHOCK_FLAG_ISSHOCK2 | |
SHOCK_FLAG_ISSHOCK3 | |
SHOCK_FLAG_SOFTBUMP | |
SHOCK_FLAG_ISTRIGGER | |
SHOCK_FLAG_TRG_BLOCKER | |
SHOCK_FLAG_TRG_CMD_SWITCH | |
SHOCK_FLAG_TRG_CMD_BLOCKER | |
SHOCK_FLAG_TRG_BLOCKER_A | |
SHOCK_FLAG_TRG_HOOK_UNLOCK | |
SHOCK_FLAG_TRG_HOOK_LOCK | |
SHOCK_FLAG_TRG_CONTINUOUS | |
SHOCK_FLAG_TRG_ENGINE | |
Definition at line 195 of file SimData.h.
◆ SpecialBeam
Enumerator |
---|
NOSHOCK | not a shock
|
SHOCK1 | shock1
|
SHOCK2 | shock2
|
SHOCK3 | shock3
|
TRIGGER | trigger
|
SUPPORTBEAM | |
ROPE | |
Definition at line 105 of file SimData.h.
◆ BEAM_BREAK
const float BEAM_BREAK = 1000000.0f |
|
static |
◆ BEAM_CREAK_DEFAULT
const float BEAM_CREAK_DEFAULT = 100000.0f |
|
static |
◆ BEAM_DEFORM
const float BEAM_DEFORM = 400000.0f |
|
static |
◆ BEAM_SKELETON_DIAMETER
const float BEAM_SKELETON_DIAMETER = 0.01f |
|
static |
◆ CHASSIS_FRICTION_COEF
const float CHASSIS_FRICTION_COEF = 0.5f |
|
static |
Chassis has 1/4 the friction of wheels.
Definition at line 64 of file SimConstants.h.
◆ DEFAULT_BEAM_DIAMETER
const float DEFAULT_BEAM_DIAMETER = 0.05f |
|
static |
◆ DEFAULT_COLLISION_RANGE
const float DEFAULT_COLLISION_RANGE = 0.02f |
|
static |
◆ DEFAULT_DAMP
const float DEFAULT_DAMP = 12000.0f |
|
static |
◆ DEFAULT_DETACHER_GROUP
const int DEFAULT_DETACHER_GROUP = 0 |
|
static |
◆ DEFAULT_DRAG
const float DEFAULT_DRAG = 0.05f |
|
static |
◆ DEFAULT_GRAVITY
const float DEFAULT_GRAVITY = -9.807f |
|
static |
◆ DEFAULT_MINIMASS
const float DEFAULT_MINIMASS = 50.0f |
|
static |
◆ DEFAULT_RIGIDIFIER_DAMP
const float DEFAULT_RIGIDIFIER_DAMP = 50000.0f |
|
static |
◆ DEFAULT_RIGIDIFIER_SPRING
const float DEFAULT_RIGIDIFIER_SPRING = 1000000.0f |
|
static |
◆ DEFAULT_SPEEDO_MAX_KPH
const float DEFAULT_SPEEDO_MAX_KPH = 140.f |
|
static |
◆ DEFAULT_SPRING
const float DEFAULT_SPRING = 9000000.0f |
|
static |
◆ DEFAULT_WATERDRAG
const float DEFAULT_WATERDRAG = 10.0f |
|
static |
◆ FLAP_ANGLES
const float FLAP_ANGLES[6] = {0.f, -0.07f, -0.17f, -0.33f, -0.67f, -1.f} |
|
static |
◆ HOOK_FORCE_DEFAULT
const float HOOK_FORCE_DEFAULT = 10000000.0f |
|
static |
◆ HOOK_LOCK_TIMER_DEFAULT
const float HOOK_LOCK_TIMER_DEFAULT = 5.0 |
|
static |
◆ HOOK_RANGE_DEFAULT
const float HOOK_RANGE_DEFAULT = 0.4f |
|
static |
◆ HOOK_SPEED_DEFAULT
const float HOOK_SPEED_DEFAULT = 0.00025f |
|
static |
◆ INVERTED_MIN_BEAM_LENGTH
◆ IRON_DENSITY
const float IRON_DENSITY = 7874.0f |
|
static |
◆ MIN_BEAM_LENGTH
const float MIN_BEAM_LENGTH = 0.1f |
|
static |
minimum beam lenght is 10 centimeters
Definition at line 55 of file SimConstants.h.
◆ NODE_FRICTION_COEF_DEFAULT
const float NODE_FRICTION_COEF_DEFAULT = 1.0f |
|
static |
◆ NODE_LOADWEIGHT_DEFAULT
const float NODE_LOADWEIGHT_DEFAULT = -1.0f |
|
static |
◆ NODE_LOCKGROUP_DEFAULT
const int NODE_LOCKGROUP_DEFAULT = -1 |
|
static |
◆ NODE_SURFACE_COEF_DEFAULT
const float NODE_SURFACE_COEF_DEFAULT = 1.0f |
|
static |
◆ NODE_VOLUME_COEF_DEFAULT
const float NODE_VOLUME_COEF_DEFAULT = 1.0f |
|
static |
◆ ROTATOR_FORCE_DEFAULT
const float ROTATOR_FORCE_DEFAULT = 10000000.0f |
|
static |
◆ ROTATOR_TOLERANCE_DEFAULT
const float ROTATOR_TOLERANCE_DEFAULT = 0.0f |
|
static |
◆ SPEED_STOP
const float SPEED_STOP = 0.2f |
|
static |
◆ STAB_RATE
const float STAB_RATE = 0.025f |
|
static |
◆ SUPPORT_BEAM_LIMIT_DEFAULT
const float SUPPORT_BEAM_LIMIT_DEFAULT = 4.0f |
|
static |
◆ WHEEL_FRICTION_COEF
const float WHEEL_FRICTION_COEF = 2.0f |
|
static |