Difference between revisions of "PRIM PHYSICS SHAPE TYPE"

From Second Life Wiki
Jump to navigation Jump to search
m (oops ^^;)
m (^_^)
Line 12: Line 12:
! colspan="3" {{!}} Notes
! colspan="3" {{!}} Notes
{{!}}-
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_PRIM|integer|0}}
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_PRIM|integer|0|c=Use the normal prim shape for physics}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} colspan="3" {{!}} Use the normal prim shape for physics
{{!}} colspan="3" {{!}} {{#var:comment}}
{{!}} colspan="3" {{!}} default for all non-mesh objects
{{!}} colspan="3" {{!}} default for all non-mesh objects
{{!}}-
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_CONVEX|integer|2}}
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_CONVEX|integer|2|c=Use the convex hull of the prim shape for physics}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} colspan="3" {{!}} Use the convex hull of the prim shape for physics
{{!}} colspan="3" {{!}} {{#var:comment}}
{{!}} colspan="3" {{!}} default for all mesh objects
{{!}} colspan="3" {{!}} default for all mesh objects
{{!}}-
{{!}}-
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_NONE|integer|1}}
{{!}} {{LSL Const|PRIM_PHYSICS_SHAPE_NONE|integer|1|c=Ignore this prim in the physics shape. }}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} colspan="3" {{!}} Ignore this prim in the physics shape.
{{!}} colspan="3" {{!}} {{#var:comment}}
{{!}} colspan="3" {{!}} ''This cannot be applied to the root prim.''
{{!}} colspan="3" {{!}} ''This cannot be applied to the root prim.''
}}
}}
{{LSL Signature/Add|{{LSL Const/Signature|PRIM_PHYSICS_SHAPE_PRIM|integer|0|c=Use the normal prim shape for physics}}
{{LSL Const/Signature|PRIM_PHYSICS_SHAPE_CONVEX|integer|2|c=Use the convex hull of the prim shape for physics}}
{{LSL Const/Signature|PRIM_PHYSICS_SHAPE_NONE|integer|1|c=Ignore this prim in the physics shape}}}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:

Revision as of 11:45, 8 January 2012

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 Flags V Description Notes
PRIM_PHYSICS_SHAPE_PRIM 0 Use the normal prim shape for physics default for all non-mesh objects
PRIM_PHYSICS_SHAPE_CONVEX 2 Use the convex hull of the prim shape for physics default for all 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;
integer PRIM_PHYSICS_SHAPE_PRIM = 0;//Use the normal prim shape for physics
integer PRIM_PHYSICS_SHAPE_CONVEX = 2;//Use the convex hull of the prim shape for physics
integer PRIM_PHYSICS_SHAPE_NONE = 1;//Ignore this prim in the physics shape