Set MoverController angular velocities to zero (#10715)

This commit is contained in:
Leon Friedrich 2022-08-23 23:59:46 +12:00 committed by GitHub
parent 0397b63b99
commit 307e4a455f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,9 @@ namespace Content.Shared.Movement.Systems
Accelerate(ref velocity, in worldTotal, accel, frameTime);
PhysicsSystem.SetLinearVelocity(physicsComponent, velocity);
// Ensures that players do not spiiiiiiin
PhysicsSystem.SetAngularVelocity(physicsComponent, 0);
}
private void Friction(float minimumFrictionSpeed, float frameTime, float friction, ref Vector2 velocity)