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

19.2.16 normalize

normvec = physics.Vect:normalize()

Parameter

Type

Description

self

in physics.Vect

The input vector

normvec

out physics.Vect

The resulting normalized vector

Returns a normalized copy of self. The length of a normal vector is 1.

Introduced in platform.apiLevel = '2.0'