Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple Position/Scale/etc Changes AT ONCE suggestion

Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
12-04-2003 15:07
Just in case I forgot to post this idea in this thread, here's the recap:


There is a lot of motion in the game, but much of it is done with physical objects in order to get the smooth and controlled motion that is desired. The non-physical motion commands, with the 1.1-added damping ARE more usable for simple motions like a door opening, but their functionality mostly stops there.

I've mentioned an idea of mine before in other threads, but this may be a good place to reiterate once more...

There are two script functions that currently take a list of parameters so that only those parameters that need to be set are passed. (The two being for particles and vehicles.) I propose a third function in this style for non-physical movement.

llAlterObject( list params );

Then for the list, have such things as:

ALTER_POSITION (vector) - the target position
ALTER_POSITION_START_TAU (float) - how long to take to ramp up to speed
ALTER_POSITION_END_TAU (float) - how long to slow down and stop at target
ALTER_ROTATION (rotation) - the target rotation
ALTER_ROTATION_START_TAU (float) - how long to spin up
ALTER_ROTATION_END_TAU (float) - how long to spin down
ALTER_SCALE (vector) - the target scale
ALTER_SCALE_START_TAU (float) - how long to get up to speed
ALTER_SCALE_END_TAU (float) - how long to slow to target scale

Even more control can be given to this function by adding new parameters later on for such things as changing the base shape of the primitive, setting the cut, twist, dimple, and other settings. All with control over the speed at which they progress, and most importantly all the changes happen at the same time.
_____________________
~ Tiger Crossing
~ (Nonsanity)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
12-08-2003 01:53
Yess! This would be sooo good, allows a whole bunch of things currently missing:

Control of damping
Control of other object parametere
Off center rotation!

==Chris
くりす
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
12-08-2003 07:35
I should add:
ALT_USE_LOCAL_POSITION (true/false) - the new position vector will be treated as an offset if true, or an absolute position if false
ALT_USE_LOCAL_ROTATION (true/false) - the new rotation vector will be treated as an offset if true, or an absolute rotation if false
ALT_USE_LOCAL_SCALE (true/false) - the new scale will be treated as a percentage to scale if true, or an absolute scale if false

And:
ALT_CENTER_POSITON (integer) - a flag to choose which center to use for positioning
ALT_CENTER_ROTATION (integer) - a flag to choose which center to use for rotation
ALT_CENTER_SCALE (integer) - a flag to choose which center to use for scaling

The flag is one of these:
- ALT_CENTER_HEAD, the center of a single prim or center of the head prim in a link
- ALT_CENTER_AVERAGE, the center of a single prim or average of the centers of a link
- ALT_CENTER_BOUNDING, the center of a single prim or link's bounding box
- ALT_CENTER_OF_MASS, the center of mass of the prim or link

And there should be an offset from the calculated points:
ALT_CENTER_POSITON_OFFSET (vector)
ALT_CENTER_ROTATION_OFFSET (vector)
ALT_CENTER_SCALE_OFFSET (vector)


Something else that would be useful:
ALT_WAIT_UNTIL_DONE (true/false) - if true, script execution pauses until all alterations are complete - if false, script execution continues while the alterations occur (additional llAlter commands queue up)

Or how about:
ALT_ANIMATE (float) - a flag to ping-pong the changes from pre-alter to post-alter repeatedly, a value of 0 is no animation (default), any other value is a pause at either end of the cycle
_____________________
~ Tiger Crossing
~ (Nonsanity)
Oz Spade
ReadsNoPostLongerThanHand
Join date: 23 Sep 2003
Posts: 2,708
12-08-2003 07:39
I like this idea.

This would be very very usefull.
_____________________
"Don't anticipate outcome," the man said. "Await the unfolding of events. Remain in the moment." - Konrad
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
12-27-2003 13:04
Bump
Garoad Kuroda
Prophet of Muppetry
Join date: 5 Sep 2003
Posts: 2,989
12-27-2003 20:58
Nice

I'd like to add a flag:

ALT_MAKE_IT_WORK - when true, it works.

I want control of damping too :(
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
12-28-2003 18:10
me too