Difference between revisions of "PRIM PHYSICS SHAPE TYPE"

From Second Life Wiki
Jump to navigation Jump to search
m (stub (tight on time))
 
m
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:


{{#vardefine:physics_shape_type_const|{{LSL Const|PRIM_PHYSICS_SHAPE_TYPE|integer|?|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's physics shape type}}}}
{{#vardefine:physics_shape_type_const|{{LSL Const|PRIM_PHYSICS_SHAPE_TYPE|integer|30|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's physics shape type}}}}


{{#vardefine:facetable|{{#var:facetable}}
{{#vardefine:p_pstype_desc|PRIM_PHYSICS_SHAPE_* flag}}
{{!}}-
{{#vardefine:p_pstype_hover|PRIM_PHYSICS_SHAPE_* flag (not PRIM_PHYSICS_SHAPE_TYPE of course!)}}
{{!}} [ {{#var:physics_shape_type_const}} ]
{{!}} {{#var:return}} }}
 
{{#vardefine:caveats}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
Line 15: Line 11:
|name=PRIM_PHYSICS_SHAPE_TYPE
|name=PRIM_PHYSICS_SHAPE_TYPE
|type=integer
|type=integer
|value=?
|value=30
|desc=Used to set the type of shape the physics engine should use for the object.
|desc=Used to set the type of shape the physics engine should use for the object.
|examples
|examples
Line 21: Line 17:
|pa={{LSL Constant/List|i_front=[&#32;{{#var:physics_shape_type_const}},&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[&#32;{{#var:physics_shape_type_const}},&#32;|i_end=&nbsp;]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|i1_type=integer|i1_name=type
|i1_type=integer|i1_name=pstype|i1_disp=type
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
}}
}}
Line 28: Line 24:
|text
|text
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
|r1_type=integer|r1_name=type
|r1_type=integer|r1_name=pstype|r1_disp=type
}}
}}
|functions=
|functions=
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParamsFast]]|}}
{{LSL DefineRow||[[llTargetOmega]]|}}
|events
|events
|location
|location
|history=*Introduced in [[Release Notes/Second Life RC BlueSteel/11#11.09.09.240509|Second Life RC BlueSteel 11.09.09.240509]], September 9, 2011
|history=
*Introduced in [[Release Notes/Second Life RC BlueSteel/11#11.09.09.240509|Second Life RC BlueSteel 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]
|cat1=Prim
|cat1=Prim
|cat2=Physics
|cat2=Physics

Revision as of 10:53, 17 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

Deep Notes

History

Search JIRA for related Issues

Signature

integer PRIM_PHYSICS_SHAPE_TYPE = 30;