Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

rigidbody velocity c# unity

//for rigidbody2D
GetComponent<Rigidbody2D>().velocity =new Vector2(40,0);
 
PREVIOUS NEXT
Tagged: #rigidbody #velocity #unity
ADD COMMENT
Topic
Name
2+1 =