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

19.2.4 cross

crossprod = physics.Vect:cross(vec)

Parameter

Type

Description

self

in physics.Vect

The input vector

vec

in physics.Vect

A vector to cross with self

zmag

out number

The z magnitude of the cross product of self and vec


Returns the z magnitude of the cross product of self and vec.

Introduced in platform.apiLevel = '2.0'