Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

3rd parm of llTargetOmega

Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-25-2008 11:05
I need to rotate an object with a speed from 0° to 180° and another one from 180° to 360°. I use llTargetOmega and change when necessary the third parameter, but it looks like speed does not change. My understanding was that the third parameter was used to increase/decrease speed... :(
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-25-2008 11:13
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llTargetOmega
From: someone

The rotation speed is based on the axis vector multiplied by spinrate, so it is a good idea to normalize (see llVecNorm) the axis vector or spinrate won't act like radians per second. For example, consider llTargetOmega(<0,0,1>,1,1). Then (<0,0,2>,1,1) would rotate twice as fast, (<1,1,0>,1,1) would rotate llSqrt(2); times as fast.
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
04-25-2008 12:43
FYI: llTargetOmega is having issues in this version of sl so you may have to have it run on a timer to keep it running