Difference between revisions of "PRIM PHYSICS SHAPE TYPE"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 67: Line 67:
*Introduced in [[Release Notes/Second Life RC LeTigre/11#11.09.09.240509|Second Life RC LeTigre 11.09.09.240509]], September 9, 2011
*Introduced in [[Release Notes/Second Life RC LeTigre/11#11.09.09.240509|Second Life RC LeTigre 11.09.09.240509]], September 9, 2011
*[http://www.sluniverse.com/php/vb/scripting/61203-future-physics-functions-tease.html#post1305775 SLUniverse:Future physics functions tease]
*[http://www.sluniverse.com/php/vb/scripting/61203-future-physics-functions-tease.html#post1305775 SLUniverse:Future physics functions tease]
|cat1=Prim
|cat1=PrimitiveParams
|cat2=Physics
|cat2=PrimitiveParams/Prim
|cat3
|cat3=Physics
|cat4
|cat4
}}
}}

Revision as of 21:55, 1 July 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