Rigidbody.GetPointVelocity Manual     Reference     Scripting  
Scripting > Runtime Classes > Rigidbody
Rigidbody.GetPointVelocity

function GetPointVelocity (worldPoint : Vector3) : Vector3

Description

The velocity of the rigidbody at the point worldPoint in global space.

GetPointVelocity will take the angularVelocity of the rigidbody into account when calculating the velocity.

// Prints the velocity of the wheel
point = transform.InverseTransformPoint(Vector3(0, -.2, 0));
var velocity = rigidbody.GetPointVelocity(point);
print(velocity.magnitude);