|
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
|
03-08-2006 19:49
Something to break the 5 fps limit on using llSetPrimitiveParams when you're twisting one prim to imitate a neck. This is a proposed enhancement:
llAnimTwist(vector twist, float strength, float damping)
Like llRotLookAt, but will perform a twist of the prim from it's current twist over damping seconds. The animiation of the twisting is performed client-side.
For example, contrast how it would need to be done to imitate the neck movement over two seconds. Currently: for(i=0;i<10;i++) { llSetPrimitiveParams([PRIM_TYPE, ... twiststep, ...]); }
Now: llAnimTwist(desttwist, mass/2, 2);
Of course, for completeness we will need a llAnimStopTwist to compliment, like llStop...()
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-09-2006 01:42
Wrong forum, Moved to Feature Suggestions
-------------------
I left a redirect because...
Couldn't you do this by using linked messages and multiple scripts to overcome the script delays?
_____________________
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
|
|
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
|
03-09-2006 08:59
From: Strife Onizuka Wrong forum, Moved to Feature Suggestions
-------------------
I left a redirect because...
Couldn't you do this by using linked messages and multiple scripts to overcome the script delays? No. I belive the llSet...() is server-side, therefore over a span of the rotation I'm sending out 5 llSet...() packets per second to the client. llAnimTwist would imitate llRotLookAt in that reguard. I want to be bandwith and server friendly, as much as possible. Besides, I'm only twisting one prim for a neck (a cylinder). The head is a seperate object, which I'll have to ether rotate the root prim or find out why I can't attach a jointed object.
|
|
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
|
03-16-2006 12:29
You can get over the 5fps. I'm doing this now. I have a simple texture with a cursor on it and two scripts controlling the same Face of the prims. One script updates on every even and the other one every odd button press. So the faster the more scripts and more lag.
|