Difference between revisions of "PRIM OMEGA"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 8: Line 8:
{{!}} {{#var:return}} }}
{{!}} {{#var:return}} }}


{{#vardefine:caveats|* [[PRIM_OMEGA]] is only available on RC BlueSteel [[Release Notes/Second Life RC BlueSteel/11#11.06.20.233291|as of 2011-06-22]]'''}}
{{#vardefine:caveats|* [[PRIM_OMEGA]] is only available on RC BlueSteel [[Release Notes/Second Life RC BlueSteel/11#11.06.20.233291|as of 2011-06-22]]'''
*[[PRIM_OMEGA]] on nonphysical objects is only a client side effect, and the object will collide as non-moving geometry.
*If [[PRIM_OMEGA]] does not appear to be working, make sure that that Develop > Network > Velocity Interpolate Objects is enabled on the viewer.}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
Line 40: Line 42:
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:omega_const}}&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:omega_const}}&nbsp;]);|
|r_front=Returns the [[list]] [&nbsp;|r_end=&nbsp;]
|r_front=Returns the [[list]] [&nbsp;|r_end=&nbsp;]
|text='''Caveats:'''
|text
{{#var:caveats}}<!--{{#vardefine:caveats}} -->
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
|r1_type=vector|r1_name=axis
|r1_type=vector|r1_name=axis

Revision as of 11:43, 22 June 2011

Description

Constant: integer PRIM_OMEGA = 32;

The integer constant PRIM_OMEGA has the value 32

Used to make the object spin at the specified axis and rate, or retrieve spin settings. See llTargetOmega for specification.

llSetPrimitiveParams

[ PRIM_OMEGA, vector axis, float spinrate, float gain ]
• vector axis
• float spinrate
• float gain

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_OMEGA ]);

Returns the listvector axis, float spinrate, float gain ]

• vector axis
• float spinrate
• float gain

Caveats

  • PRIM_OMEGA is only available on RC BlueSteel as of 2011-06-22
  • PRIM_OMEGA on nonphysical objects is only a client side effect, and the object will collide as non-moving geometry.
  • If PRIM_OMEGA does not appear to be working, make sure that that Develop > Network > Velocity Interpolate Objects is enabled on the viewer.
All Issues ~ Search JIRA for related Bugs

Related Articles

Examples

<lsl> // Set this prim rotating llTargetOmega(<1.0,3.0,0.5>, TWO_PI, 1.0);

// Read back this prim's current target omega list current_omega = llListToList( llGetPrimitiveParams([PRIM_OMEGA]); // should be [PRIM_OMEGA, axis, spinrate, gain] vector axis = llList2Vector(current_omega, 1); // Should be <1.0,3.0,0.5> float spinrate = llList2Float(current_omega, 2); // Should be TWO_PI float gain = llList2Float(current_omega, 3); // Should be 1.0

// Set all child prims rotating llSetLinkPrimitiveParamsFast(LINK_ALL_CHILDREN, [PRIM_OMEGA, <1.0,3.0,0.5>, TWO_PI, 1.0]); </lsl>

Deep Notes

History

Search JIRA for related Issues

Signature

integer PRIM_OMEGA = 32;