« Return to Thread: Repulsion between physical and other objects

Re: Programming a natural looking swing

by AnnMarie@SLFBI :: Rate this Message:

Reply to Author | View in Thread

This approach DOES change the speed of llSetRot() by making smaller and
smaller rotations as the swing approaches the direction reversal point so it
is actually stationary at the peak of the swing.  It RELIES on the fact that
the llSetRot() calls are in fact static for completion time.

Logan is correct, you are limited to about 5 steps per second, I had
forgotten that.  The application I did was sinusoidal linear motion where
the 0.2 built in sleep in llSetPos() was not a problem.

AnnMarie Otoole

----- Original Message -----
From: "G" <gcanaday@...>
To: <secondlifescripters@...>
Sent: Thursday, September 04, 2008 1:12 PM
Subject: Re: Programming a natural looking swing (was Repulsion between
physical and other objects)


>
> Ouch, that's a lot of work. It might be easier to simply use two llSetRots
> on a timer that's a little too short to actually complete the rotation,
> thus relying on the built-in smoothing for the direction change rather
> than having the abrupt stop when rotation completes, since it never
> completes... haven't tried it that way though, and there's no way to
> change the rotation speed since the llSetRot() calls are pretty static in
> how long they take to complete.
>
> omg that was a long sentence.
>
-bin/mailman/listinfo/secondlifescripters

_______________________________________________
Click here to unsubscribe or manage your list subscription:
https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters

 « Return to Thread: Repulsion between physical and other objects