public override void OnUpdate() { CharacterStats cs = (CharacterStats)controller.EntityStats; PhysicsManager.ApplyMovement(cs.ledgeJumpAccel, cs.ledgeJumpMaxSpeed, cs.airDeceleration, false); PhysicsManager.HandleGravity(); CheckInterrupt(); }
public override void OnUpdate() { EntityStats es = controller.EntityStats; PhysicsManager.ApplyMovement(es.airAcceleration, es.maxAirSpeed, es.airDeceleration); PhysicsManager.HandleGravity(es.gravity); controller.RotateVisual(controller.GetMovementVector(0), es.airRotationSpeed); CheckInterrupt(); }