Collider:getLinearVelocityFromWorldPoint

Returns the linear velocity of a point on the Collider specified in world space.

vx, vy, vz = Collider:getLinearVelocityFromWorldPoint(x, y, z)

Arguments

NameTypeDescription
xnumber The x coordinate in world space.
ynumber The y coordinate in world space.
znumber The z coordinate in world space.

Returns

NameTypeDescription
vxnumber The x component of the velocity of the point.
vynumber The y component of the velocity of the point.
vznumber The z component of the velocity of the point.

See also