This commit is contained in:
Mitchell Marino 2026-01-25 20:02:34 -06:00
parent f80b7e380a
commit bd5e88aa7a

View File

@ -51,8 +51,8 @@ impl CharacterControllerBundle {
character_controller: CharacterController, character_controller: CharacterController,
body: RigidBody::Kinematic, body: RigidBody::Kinematic,
collider, collider,
speed: MaxSpeed(10.), speed: MaxSpeed(100.),
acceleration: MaxAcceleration(10.), acceleration: MaxAcceleration(100.),
} }
} }
} }
@ -125,7 +125,7 @@ fn movement(
if delta_len > max_acceleration { if delta_len > max_acceleration {
delta = delta.normalize() * max_acceleration; delta = delta.normalize() * max_acceleration;
} }
**linear_velocity = delta; **linear_velocity += delta;
} }
} }