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

function GetRelativePointVelocity (relativePoint : Vector3) : Vector3

Description

The velocity relative to the rigidbody at the point relativePoint.

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

// Prints the velocity of the wheel
var relativeVelocity = rigidbody.GetRelativePointVelocity(Vector3(0, -.2, 0));
print(relativeVelocity.magnitude);