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

19.8.4 normal

nvec = physics.SegmentShape:normal()

Parameter

Type

Description

self

in physics.SegmentShape

The input SegmentShape

nvec

out physics.Vect

The unit normal vector of the segment

Returns the computed unit normal vector to the segment.

Introduced in platform.apiLevel = '2.0'