Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::GliderConfig Struct Reference

Runtime tuning values for Engine::Components::VrGlider. More...

#include <VrGliderComponent.h>

Public Attributes

float minArmSpreadDistance = 0.4f
 Minimum distance each hand must be from the headset before arms count as spread.
float armSpreadHysteresis = 0.08f
 Extra arm-spread distance required before leaving the current gliding state.
float tuckDistance = 0.45f
 Maximum horizontal distance from the headset axis for hands to count as tucked.
float gravity = 3.0f
 Downward acceleration applied while falling.
float fallingTerminalVelocity = 25.0f
 Maximum downward speed while falling.
float momentumDrag = 0.12f
 Baseline horizontal momentum drag applied by the flight model.
float highSpeedDrag = 0.005f
 Additional drag applied as speed increases.
float minGlideSink = 0.65f
 Minimum downward speed maintained during normal gliding.
float maxClimbRate = 6.0f
 Maximum upward speed requested by palm tilt.
float climbMomentumCost = 0.48f
 Horizontal momentum spent per unit of climb demand.
float diveSinkRate = 7.0f
 Downward speed requested by full dive input.
float diveMomentumGain = 0.72f
 Horizontal momentum gained per unit of dive demand.
float windMomentumGain = 0.72f
 Horizontal momentum gained from aligned wind.
float windDiminishingSpeed = 12.0f
 Speed at which wind acceleration starts diminishing.
float windAlignmentPower = 1.6f
 Exponent applied to wind alignment before adding wind momentum.
float crosswindTurnRate = 0.06f
 Steering influence from crosswind.
float headwindPenalty = 0.55f
 Momentum penalty applied when flying into wind.
float glideTurnRate = 7.0f
 Direction interpolation rate toward the current glide input.
float stallSpeed = 3.5f
 Horizontal speed below which a climbing glider enters stall.
float stallRecoverySpeed = 4.7f
 Horizontal speed required before stall recovery can complete.
float stallSinkSpeed = 6.0f
 Downward speed while stalled.
float stallDiveSinkScale = 0.35f
 Scale applied to dive sink while stalled.
float stallExtraDrag = 0.12f
 Extra drag applied while stalled.
float stallRecoveryDelay = 0.18f
 Time above recovery speed before a stall exits.
float emergencyMaxSpeed = 80.0f
 Hard velocity clamp for flight-model safety.
float snapTurnDegrees = 30.0f
 Yaw angle applied by one walking snap turn.
float snapTurnThreshold = 0.7f
 Right thumbstick X value required to trigger a walking snap turn.
float stickDeadzone = 0.15f
 Thumbstick magnitude ignored as input noise.
glm::vec3 spawnPosition { 0.0f, 10.0f, 0.0f }
 Position used by spawn reset and as the initial safe landing position.
float walkSpeed = 2.5f
 Maximum walking speed on walkable ground.
float groundRayLength = 1.5f
 Downward sweep distance for ground detection.
float groundSmoothSpeed = 12.0f
 Exponential smoothing rate used when following ground height.
float maxStepHeight = 0.3f
 Reserved step-height value for walking movement.
float maxWalkableSlope = 0.7f
 Minimum ground-normal Y component accepted as walkable.
float groundHoverOffset = 0.01f
 Vertical offset kept above walkable ground.
float walkTakeoffLiftSpeed = 2.0f
 Upward velocity applied when taking off from walking.
float walkTakeoffMomentum = 4.0f
 Minimum horizontal speed applied when taking off from walking.
float walkTakeoffClearance = 0.2f
 Upward clearance sweep distance required before walking takeoff.
float flightCollisionFallSpeed = 1.5f
 Downward velocity applied after hitting a non-walkable surface in flight.
float fallResetY = -350.0f
 World Y position below which the glider respawns at the last safe landing point.
float landingCheckpointSettleTime = 0.5f
 Time spent settled on walkable ground before updating the landing checkpoint.
float respawnHeightOffset = 1.0f
 Vertical offset added when respawning at the last safe landing point.

Detailed Description

Runtime tuning values for Engine::Components::VrGlider.

Distances are meters. Speeds are meters per second. Time values are seconds. Slopes use the world-space ground-normal Y component, where 1.0 is flat ground and 0.0 is vertical.

Definition at line 47 of file VrGliderComponent.h.

Member Data Documentation

◆ armSpreadHysteresis

float Engine::GliderConfig::armSpreadHysteresis = 0.08f

Extra arm-spread distance required before leaving the current gliding state.

Definition at line 50 of file VrGliderComponent.h.

◆ climbMomentumCost

float Engine::GliderConfig::climbMomentumCost = 0.48f

Horizontal momentum spent per unit of climb demand.

Definition at line 60 of file VrGliderComponent.h.

◆ crosswindTurnRate

float Engine::GliderConfig::crosswindTurnRate = 0.06f

Steering influence from crosswind.

Definition at line 66 of file VrGliderComponent.h.

◆ diveMomentumGain

float Engine::GliderConfig::diveMomentumGain = 0.72f

Horizontal momentum gained per unit of dive demand.

Definition at line 62 of file VrGliderComponent.h.

◆ diveSinkRate

float Engine::GliderConfig::diveSinkRate = 7.0f

Downward speed requested by full dive input.

Definition at line 61 of file VrGliderComponent.h.

◆ emergencyMaxSpeed

float Engine::GliderConfig::emergencyMaxSpeed = 80.0f

Hard velocity clamp for flight-model safety.

Definition at line 75 of file VrGliderComponent.h.

◆ fallingTerminalVelocity

float Engine::GliderConfig::fallingTerminalVelocity = 25.0f

Maximum downward speed while falling.

Definition at line 54 of file VrGliderComponent.h.

◆ fallResetY

float Engine::GliderConfig::fallResetY = -350.0f

World Y position below which the glider respawns at the last safe landing point.

Definition at line 93 of file VrGliderComponent.h.

◆ flightCollisionFallSpeed

float Engine::GliderConfig::flightCollisionFallSpeed = 1.5f

Downward velocity applied after hitting a non-walkable surface in flight.

Definition at line 92 of file VrGliderComponent.h.

◆ glideTurnRate

float Engine::GliderConfig::glideTurnRate = 7.0f

Direction interpolation rate toward the current glide input.

Definition at line 68 of file VrGliderComponent.h.

◆ gravity

float Engine::GliderConfig::gravity = 3.0f

Downward acceleration applied while falling.

Definition at line 53 of file VrGliderComponent.h.

◆ groundHoverOffset

float Engine::GliderConfig::groundHoverOffset = 0.01f

Vertical offset kept above walkable ground.

Definition at line 88 of file VrGliderComponent.h.

◆ groundRayLength

float Engine::GliderConfig::groundRayLength = 1.5f

Downward sweep distance for ground detection.

Definition at line 84 of file VrGliderComponent.h.

◆ groundSmoothSpeed

float Engine::GliderConfig::groundSmoothSpeed = 12.0f

Exponential smoothing rate used when following ground height.

Definition at line 85 of file VrGliderComponent.h.

◆ headwindPenalty

float Engine::GliderConfig::headwindPenalty = 0.55f

Momentum penalty applied when flying into wind.

Definition at line 67 of file VrGliderComponent.h.

◆ highSpeedDrag

float Engine::GliderConfig::highSpeedDrag = 0.005f

Additional drag applied as speed increases.

Definition at line 57 of file VrGliderComponent.h.

◆ landingCheckpointSettleTime

float Engine::GliderConfig::landingCheckpointSettleTime = 0.5f

Time spent settled on walkable ground before updating the landing checkpoint.

Definition at line 94 of file VrGliderComponent.h.

◆ maxClimbRate

float Engine::GliderConfig::maxClimbRate = 6.0f

Maximum upward speed requested by palm tilt.

Definition at line 59 of file VrGliderComponent.h.

◆ maxStepHeight

float Engine::GliderConfig::maxStepHeight = 0.3f

Reserved step-height value for walking movement.

Definition at line 86 of file VrGliderComponent.h.

◆ maxWalkableSlope

float Engine::GliderConfig::maxWalkableSlope = 0.7f

Minimum ground-normal Y component accepted as walkable.

Definition at line 87 of file VrGliderComponent.h.

◆ minArmSpreadDistance

float Engine::GliderConfig::minArmSpreadDistance = 0.4f

Minimum distance each hand must be from the headset before arms count as spread.

Definition at line 49 of file VrGliderComponent.h.

◆ minGlideSink

float Engine::GliderConfig::minGlideSink = 0.65f

Minimum downward speed maintained during normal gliding.

Definition at line 58 of file VrGliderComponent.h.

◆ momentumDrag

float Engine::GliderConfig::momentumDrag = 0.12f

Baseline horizontal momentum drag applied by the flight model.

Definition at line 56 of file VrGliderComponent.h.

◆ respawnHeightOffset

float Engine::GliderConfig::respawnHeightOffset = 1.0f

Vertical offset added when respawning at the last safe landing point.

Definition at line 95 of file VrGliderComponent.h.

◆ snapTurnDegrees

float Engine::GliderConfig::snapTurnDegrees = 30.0f

Yaw angle applied by one walking snap turn.

Definition at line 77 of file VrGliderComponent.h.

◆ snapTurnThreshold

float Engine::GliderConfig::snapTurnThreshold = 0.7f

Right thumbstick X value required to trigger a walking snap turn.

Definition at line 78 of file VrGliderComponent.h.

◆ spawnPosition

glm::vec3 Engine::GliderConfig::spawnPosition { 0.0f, 10.0f, 0.0f }

Position used by spawn reset and as the initial safe landing position.

Definition at line 81 of file VrGliderComponent.h.

◆ stallDiveSinkScale

float Engine::GliderConfig::stallDiveSinkScale = 0.35f

Scale applied to dive sink while stalled.

Definition at line 72 of file VrGliderComponent.h.

◆ stallExtraDrag

float Engine::GliderConfig::stallExtraDrag = 0.12f

Extra drag applied while stalled.

Definition at line 73 of file VrGliderComponent.h.

◆ stallRecoveryDelay

float Engine::GliderConfig::stallRecoveryDelay = 0.18f

Time above recovery speed before a stall exits.

Definition at line 74 of file VrGliderComponent.h.

◆ stallRecoverySpeed

float Engine::GliderConfig::stallRecoverySpeed = 4.7f

Horizontal speed required before stall recovery can complete.

Definition at line 70 of file VrGliderComponent.h.

◆ stallSinkSpeed

float Engine::GliderConfig::stallSinkSpeed = 6.0f

Downward speed while stalled.

Definition at line 71 of file VrGliderComponent.h.

◆ stallSpeed

float Engine::GliderConfig::stallSpeed = 3.5f

Horizontal speed below which a climbing glider enters stall.

Definition at line 69 of file VrGliderComponent.h.

◆ stickDeadzone

float Engine::GliderConfig::stickDeadzone = 0.15f

Thumbstick magnitude ignored as input noise.

Definition at line 79 of file VrGliderComponent.h.

◆ tuckDistance

float Engine::GliderConfig::tuckDistance = 0.45f

Maximum horizontal distance from the headset axis for hands to count as tucked.

Definition at line 51 of file VrGliderComponent.h.

◆ walkSpeed

float Engine::GliderConfig::walkSpeed = 2.5f

Maximum walking speed on walkable ground.

Definition at line 83 of file VrGliderComponent.h.

◆ walkTakeoffClearance

float Engine::GliderConfig::walkTakeoffClearance = 0.2f

Upward clearance sweep distance required before walking takeoff.

Definition at line 91 of file VrGliderComponent.h.

◆ walkTakeoffLiftSpeed

float Engine::GliderConfig::walkTakeoffLiftSpeed = 2.0f

Upward velocity applied when taking off from walking.

Definition at line 89 of file VrGliderComponent.h.

◆ walkTakeoffMomentum

float Engine::GliderConfig::walkTakeoffMomentum = 4.0f

Minimum horizontal speed applied when taking off from walking.

Definition at line 90 of file VrGliderComponent.h.

◆ windAlignmentPower

float Engine::GliderConfig::windAlignmentPower = 1.6f

Exponent applied to wind alignment before adding wind momentum.

Definition at line 65 of file VrGliderComponent.h.

◆ windDiminishingSpeed

float Engine::GliderConfig::windDiminishingSpeed = 12.0f

Speed at which wind acceleration starts diminishing.

Definition at line 64 of file VrGliderComponent.h.

◆ windMomentumGain

float Engine::GliderConfig::windMomentumGain = 0.72f

Horizontal momentum gained from aligned wind.

Definition at line 63 of file VrGliderComponent.h.


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