You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > normal

19.11.10 normal

nvec = physics.Arbiter:normal(i)

Parameter

Type

Description

self

in physics.Arbiter

The input Arbiter

i

in number

A contact point number

nvec

out physics.Vect

Vector normal to the ith contact point

Returns the collision normal vector for the ith contact point. Returns nil if i is out of the range of the number of contact points.

Introduced in platform.apiLevel = '2.0'