Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

make 2D object move at constant speed unity

myRigidbody.velocity = speed * (myRigidbody.velocity.normalized);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #object #move #constant #speed #unity
ADD COMMENT
Topic
Name
4+8 =