LSL feature request. The described function does not exist. This article is a feature request.

Rotates the object around axis passing through offset at spinrate * llVecMag(axis) in radians per second with strength gain.

Syntax

void llTargetOffsetOmega( vector axis, float spinrate, float gain, vector offset );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

vector axis
arbitrary axis to rotate the object around
float spinrate
rate of rotation in radians per second
float gain
needs to be non-zero
vector offset
offset from the center of the prim translates the axis

Specification

Physics

Link Sets

TODO: Not really sure about this - I suppose that the offset could be relative to various coordinate systems.

Caveats

Examples

<lsl>//rotates the x axis once per second, // rotates the y axis 3 times per second, // rotates the z axis once every two seconds. // combined the rate is about 3.20156 revolutions per second llTargetOmega(<1.0,3.0,0.5>,TWO_PI,1.0, <1.0, 2.0, 3.0>);</lsl>

Notes

Use llVecNorm on axis so that spinrate actually represents the rate of rotation.