VERGELua API

PhysicsObject

A rigid body in a physics environment.

obj:IsNull():boolean

Whether the physics object wrapper is null.

obj:Wake()

Wake the object up.

obj:Sleep()

Put the object to sleep.

obj:GetPosition():Vector3, Vector3

Position and angles of the object.

obj:SetPosition(pos:Vector3, ang:Vector3, teleport:boolean)

Move and reorient the object.

obj:GetVelocity():Vector3, Vector3

Linear and angular velocity.

obj:SetVelocity(v:Vector3, angVel:Vector3)

Set linear and angular velocity.

obj:AddVelocity(v:Vector3, angVel:Vector3)

Apply linear and angular impulse.

obj:OutputDebugInfo()

Print debug info for the physics object.