19.3.3 clampVect

cvec = physics.BB:clampVect(vec)

Parameter

Type

Description

self

in physics.BB

The input bounding box

vec

in physics.Vect

A vector

cvec

out physics.Vect

A vector clamped to the bounding box


Returns a copy of vec clamped to the bounding box.

Introduced in platform.apiLevel = '2.0'