Answers for "how to clamp a velocity in unity c#"

C#
0

how to clamp a velocity in unity c#

rigidbody2D.velocity = Vector2.ClampMagnitude(rigidbody2D.velocity, maxVelocity);
Posted by: Guest on January-09-2021

Code answers related to "how to clamp a velocity in unity c#"

C# Answers by Framework

Browse Popular Code Answers by Language