group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PhysicsConstants.hpp File Reference

All physics tuning constants in one place. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  physics
 Pure physics math — no ECS types, no registry.
 

Variables

constexpr float physics::k_gravity = 1000.0f
 Downward acceleration (units/s^2). Faster than real-world for snappy arcs.
 
constexpr float physics::k_jumpSpeed = 380.0f
 Initial upward velocity on jump (units/s). Gives apex ~ 72 units (~6 ft).
 
constexpr float physics::k_groundAccel = 15.0f
 Ground acceleration constant. Higher = reaches max speed faster.
 
constexpr float physics::k_airAccel
 Air acceleration constant. Higher than Quake (0.7) for Titanfall-style air control.
 
constexpr float physics::k_airMaxSpeed
 Wish-speed cap in air (units/s). Does NOT cap total speed — existing momentum is preserved.
 
constexpr float physics::k_friction = 4.0f
 Ground friction coefficient (Quake default).
 
constexpr float physics::k_stopSpeed = 150.0f
 Friction is amplified below this speed for a crisp stop.
 
constexpr float physics::k_overbounceWall = 1.001f
 Separation impulse for walls/ceilings; prevents corner-sticking.
 
constexpr float physics::k_overbounceFloor = 1.0f
 Floor overbounce — exactly 1.0 means no bounce.
 
constexpr float physics::k_stepHeight = 18.0f
 Maximum obstacle height auto-stepped over without jumping (units).
 

Detailed Description

All physics tuning constants in one place.