Difference between revisions of "PRIM PHYSICS"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 11: Line 11:
|type=integer
|type=integer
|value=3
|value=3
|desc=Boolean that sets whether the object responds to SL physics.
|desc=Used to get or set the object's [[STATUS_PHYSICS|physics]] {{LSLGC|Status|status}}. When enabled the object responds to SL physics.
|pa={{LSL Constant/List|i_front=[ {{#var:physics_const}}, |i_end= ]
|pa={{LSL Constant/List|i_front=[ {{#var:physics_const}}, |i_end= ]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
Line 31: Line 31:
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
|events=
{{LSL DefineRow||[[llSetStatus]]|}}
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[llGetStatus]]|}}
|events
|location
|location
|cat1=Object
|cat1=Object

Revision as of 13:11, 19 July 2009

Description

Constant: integer PRIM_PHYSICS = 3;

The integer constant PRIM_PHYSICS has the value 3

Used to get or set the object's physics status. When enabled the object responds to SL physics.

llSetPrimitiveParams

[ PRIM_PHYSICS, integer boolean ]
• integer boolean TRUE enables, FALSE disables

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

  • NOTE: This sets the entire object (linkset) when used in either function.

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_PHYSICS ]);

Returns the list [ integer boolean ]

• integer boolean TRUE enables, FALSE disables

Caveats


Related Articles

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_PHYSICS = 3;