Gotty McArdle
Registered User
Join date: 28 May 2006
Posts: 10
|
01-08-2010 14:58
Hi all,
I'm trying to spin a linkset around the root prim's local z-axis using llTargetOmega. It's fine as long as the linkset is aligned to the world's axis but it failed when set to another rotation. So, after a bit of research I found a possible cure:
axis = axis * llGetLocalRot(); llTargetOmega( axis, spinrate, gain );
A rather unpleasant side-effect was that the entire linkset then begins to 'wobble' as it rotates - as if another small rotation has been applied.
So, the question is; how do I resolve this problem and keep smooth the object spinning smoothly on the one axis?
Thanks in advance!
Gotty
|
Fenix Eldritch
Mostly harmless
Join date: 30 Jan 2005
Posts: 201
|
01-08-2010 15:30
is your root prim off center?
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-08-2010 16:46
the axis formula is right, the wobble are seeing is probably caused by the viewer (maybe only at certain angles?) as it tries to apply that locally.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Gotty McArdle
Registered User
Join date: 28 May 2006
Posts: 10
|
01-11-2010 14:31
Spot on, Void! It certainly seems to be a viewer issue. If the object is left spinning and seemingly moving off-axis and the avatar moves away/to another sim and then returns, the object is back in it's original position. Thanks for the help  Gotty
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
01-11-2010 14:45
You should file a bug report about this on JIRA. http://jira.secondlife.comObjects should not wobble or drift.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Gotty McArdle
Registered User
Join date: 28 May 2006
Posts: 10
|
01-15-2010 10:53
JIRA report filed on this issue. Let's see if it's fixable or not. Thanks again all!
Gotty
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
01-15-2010 11:12
Save me a search please Gotty, and post the bug number? I'll vote, I've seen this too. I'm never terribly confident when scripting rotations, and must have spent 45 minutes the other day banging my head against this. 
|
Gotty McArdle
Registered User
Join date: 28 May 2006
Posts: 10
|
01-17-2010 03:36
Here's the link for the issue, Nika: http://jira.secondlife.com/browse/VWR-16629It's an annoying little bug but needs fixing 
|