Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

TargetOmega madness

Ryder Spearmann
Early Adopter
Join date: 1 May 2006
Posts: 216
06-18-2007 15:51
Hi all.

Amazing bug, me thinks: (see update below... )

llTargetOmega fails when launched inside of a link_message routine!

see below: this script uses llTargetOmega in exactly the same way... except one is initiated by touch... the other by a message. Touch works. A mesage does not


default
{
touch_start(integer total_number)
{
llTargetOmega(<1,0,0>,-.5,10.0);
}

link_message(integer sender_num, integer num, string message, key id)
{
llSay(0,"Yes... I DID get the message";);
llTargetOmega(<1,0,0>,-.5,10.0);
}
}



Update.... sorry folks... I have linked the issue to the physics being turned on. llTargetOmega seems to fail with physics turned on. Another part of my script was doing that to the entire object.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-19-2007 02:51
From: Ryder Spearmann
[...]Update.... sorry folks... I have linked the issue to the physics being turned on. llTargetOmega seems to fail with physics turned on. Another part of my script was doing that to the entire object.


So, the thing about llTargetOmega() on physical objects is not that it "fails" exactly, but that the "gain" argument requires much different values than in the non-physical case (which in contrast seems to not much care what the value is, as long as it's not zero). As the wiki notes about the physical function: "It seems easy to oddly launch things this way, though. Be careful with this combination." Indeed, a silly experiment (in thread /54/96/191198/1.html) created--seemingly at random--docile wandering spheres on one attempt, and hurtling projectiles on the next, perhaps related to how soon the "spinning top" toppled over.