Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity get velocity of gameobject

Rigidbody rb = GetComponent<Rigidbody>();
rb.velocity; // Velocity of gameObject (Vector3)
 
PREVIOUS NEXT
Tagged: #unity #velocity #gameobject
ADD COMMENT
Topic
Name
3+5 =