Don't click here unless you want to be banned.

LSL Wiki : llApplyRotationalImpulse

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl427.us.archive.org
llApplyRotationalImpulse(vector force, integer local);

Applies a rotational impulse. This movement is relative to the axes created by the object's rotation (seen with "Local Axis" enabled in edit mode) if local == TRUE. Otherwise, it is applied relative to the task's region's axes (seen with "Local Axis" unchecked in edit mode).

Note: this function only works on physical objects. It does not work on attachments.

Compare with llApplyImpulse.

Does not seem to factor in the mass of the object.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Dynamics | Physics | Impulse
Comments [Hide comments/form]
This doesn't rotate AROUND the axis. I tried to get it to spin something but it just keeps pivoting ALONG the axis.
-- EepQuirk (2006-03-03 21:02:38)
Most physics functions rotate around the center of mass of the object, not the root or median center.
-- BlindWanderer (2006-03-04 15:40:12)
Not what I'm saying. Use the function on a linked object to see what I mean. I'm trying to make a windmill with a root cylinder (hollowed so it can spin around an axel) and 3 cylinder "spokes" and can't get it to spin around the axel at all; it always wants to rotate INTO but never AROUND the axel no matter what vector I use to designate the rotation axis.
-- EepQuirk (2006-03-05 06:08:24)
what parameters are you passing the function?
-- ChristopherOmega (2006-03-07 13:56:56)
I've tried all variations of vector force: <1,0,0>,<0,1,0>,<0,0,1>,<1,1,1>,<1,1,0>,<0,1,1>,<1,0,1> (except <0,0,0> of course)
-- EepQuirk (2006-03-08 05:48:02)
In which primitive is the script calling the function, and what are you passing as the local parameter?
-- ChristopherOmega (2006-03-09 18:04:57)
Root primitive; tried 0 or 1 as local but doesn't matter.
-- EepQuirk (2006-03-10 00:57:50)
Attach a comment to this page: