Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Prim animation help

racush Cheeky
Registered User
Join date: 23 Jan 2006
Posts: 23
08-19-2009 18:22
Ok so I have a nice working setup to move a child prim from one position to another working on some set vectors using llSetPrimitiveParams. Now the problem I’m running into is this prevents me from scaling the linkset with out manually changing those vectors. What I would like is to work on those two vectors but when the linkset gets scaled it updates the vectors to still keep the same distance from the root prim. I’ve looked over the forums all day today in hopes of finding some info that could be of some help but anything I’ve tried failed. Keep in mind this is for an attachment too but my guess is i need some way to offset the target positions when the scale changes.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-19-2009 18:32
How are you planning to scale them?

I mean, scaling can be as easy as pos_vector * scale_float, where scale_float is 1.0 for the current position/scale, > 1.0 to make it "bigger", or < 1.0 to make it smaller.

Note that link distance between prims is also a factor in the success/failure of this kind of scaling. IE, if the computed vector at some scale is greater than the link distance, that prim will simply not move.
racush Cheeky
Registered User
Join date: 23 Jan 2006
Posts: 23
08-19-2009 19:52
Well this was going to allow the end user to use the normal build tools to scale the object to fit their av so all i really need is some way to compensate for that.
racush Cheeky
Registered User
Join date: 23 Jan 2006
Posts: 23
08-19-2009 22:55
well turns out a solution was found so ignore this.