Difference between revisions of "PRIM PHYSICS SHAPE TYPE"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
{{#vardefine:p_pstype_desc|PRIM_PHYSICS_SHAPE_* flag}}
{{#vardefine:p_pstype_desc|PRIM_PHYSICS_SHAPE_* flag}}
{{#vardefine:p_pstype_hover|PRIM_PHYSICS_SHAPE_* flag (not PRIM_PHYSICS_SHAPE_TYPE of course!)}}
{{#vardefine:p_pstype_hover|PRIM_PHYSICS_SHAPE_* flag (not PRIM_PHYSICS_SHAPE_TYPE of course!)}}
{{#vardefine:pc|
{{{!}} class="sortable" {{Prettytable|style=margin-top:0;}}
{{!}}- {{Hl2}}
!{{!}} {{LSL Param|pstype|type}}
! title="value" {{!}} V
!{{!}} Description
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_PRIM|integer|0}}
{{!}} {{#var:value}}
{{!}} Use the normal prim shape for physics (this is the default for all non-mesh objects)
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_CONVEX|integer|2}}
{{!}} {{#var:value}}
{{!}} Use the convex hull of the prim shape for physics (this is the default for mesh objects)
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_NONE|integer|1}}
{{!}} {{#var:value}}
{{!}} Ignore this prim in the physics shape. ''This cannot be applied to the root prim.''
{{!}}}
}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
Line 26: Line 47:
|r1_type=integer|r1_name=pstype|r1_disp=type
|r1_type=integer|r1_name=pstype|r1_disp=type
}}
}}
|pc=
|functions=
|functions=
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}

Revision as of 11:55, 20 September 2011

Description

Constant: integer PRIM_PHYSICS_SHAPE_TYPE = 30;

The integer constant PRIM_PHYSICS_SHAPE_TYPE has the value 30

Used to set the type of shape the physics engine should use for the object.

llSetPrimitiveParams

[ PRIM_PHYSICS_SHAPE_TYPE, integer type ]
• integer type PRIM_PHYSICS_SHAPE_* flag

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_PHYSICS_SHAPE_TYPE ]);

Returns the listinteger type ]

• integer type PRIM_PHYSICS_SHAPE_* flag
type V Description
PRIM_PHYSICS_SHAPE_PRIM 0 Use the normal prim shape for physics (this is the default for all non-mesh objects)
PRIM_PHYSICS_SHAPE_CONVEX 2 Use the convex hull of the prim shape for physics (this is the default for mesh objects)
PRIM_PHYSICS_SHAPE_NONE 1 Ignore this prim in the physics shape. This cannot be applied to the root prim.

Deep Notes

History

Search JIRA for related Issues

Signature

integer PRIM_PHYSICS_SHAPE_TYPE = 30;