User Tools

Site Tools


lgscript:physsrv

PhysSrv

SubscribeMsg

Listen for physics model messages.

Parameter integer object
Parameter string or integer messages

UnsubscribeMsg

Stop listening to physics messages.

Parameter integer object
Parameter string or integer messages

LaunchProjectile

Emit an object.

Returns integer or nil object
Parameter integer source
Parameter integer archetype
Parameter number velocity (optional)
Parameter string or integer options (optional)
Parameter vector randomize (optional)

SetVelocity

Change the velocity of an object.

Parameter integer object
Parameter vector velocity

GetVelocity

Get the velocity of an object.

Returns vector velocity
Parameter integer object

ControlVelocity

Lock the velocity of an object.

Parameter integer object
Parameter vector velocity

StopControlVelocity

Unlock the velocity of an object.

Parameter integer object

SetGravity

Change the gravity of an object.

Parameter integer object
Parameter number gravity

GetGravity

Get the gravity of an object.

Returns number gravity
Parameter integer object

HasPhysics

Does the object have a physics model.

Returns boolean isphysical
Parameter integer object

IsSphere

Is the physics model a sphere or sphere hat.

Returns boolean issphere
Parameter integer object

IsOBB

Is the physics model an oriented bounding-box.

Returns boolean isobb
Parameter integer object

ControlCurrentLocation

Lock the location of an object to the current position.

Parameter integer object

ControlCurrentRotation

Lock the rotation of an object to the current facing.

Parameter integer object

ControlCurrentPosition

Lock the location and rotation of an object.

Parameter integer object

DeregisterModel

Make an object non-physical.

Parameter integer object

PlayerMotionSetOffset

Nudge the player.

Parameter integer zero (optional)
Parameter vector offset

Activate

Wake up an object at rest.

Returns boolean success
Parameter integer object

ValidPos

Test that an object is not in solid space.

Returns boolean isvalid
Parameter integer object
lgscript/physsrv.txt · Last modified: 2009/08/25 22:04 (external edit)