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

19.5.18 setSurfaceV

self = physics.Shape:setSurfaceV(vel)

Parameter

Type

Description

self

in physics.Shape

The input Shape

velgroup

in physics.Vect

The new vector for the surface velocity

self

out physics.Shape

The input Shape is returned as the output

Sets the surface velocity of the shape. Returns self.

Note

The group number is converted to a positive whole number when stored.

Introduced in platform.apiLevel = '2.0'