Set MoverController angular velocities to zero (#10715)
This commit is contained in:
parent
0397b63b99
commit
307e4a455f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue