Contact:getNormal

Edit

Returns the normal vector of the Contact. This is a direction vector that represents which direction the second collider should move to resolve the collision.

x, y, z = Contact:getNormal()

Arguments

None

Returns

NameTypeDescription
xnumber The x component of the normal vector.
ynumber The y component of the normal vector.
znumber The z component of the normal vector.

See also