|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
11-28-2006 06:37
Was having problems with figuring this out.
I have the code to change the height of a prim. However, its stretching both sides. How can I make it longer in one direction only?
My thought was to change the height and position at the same time. However, since its 2 sequential commands, the movement isn't smooth and immediate. It does each prim change with a minor time gap between each one.
I was reading on how WarpPos uses a list variable to process all of the changes at once. Could I use this method to do the single-side stretching, and what would the code look like?
|
|
Woopsy Dazy
Registered User
Join date: 12 Nov 2006
Posts: 173
|
11-28-2006 06:47
You'er right I think. Here's a link: http://lslwiki.com/lslwiki/wakka.php?wakka=llSetPrimitiveParamsWould look something like: llSetPrimitiveParams([PRIM_SIZE, <1, 1, 0>]);
|
|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
11-28-2006 06:58
Yeah, I've already got this. But how can I combine the PRIM_SCALE and PRIM_POSITION changes to be simultaneously done, instead of one after the other. I think this is how WarpPos does it.
|
|
Woopsy Dazy
Registered User
Join date: 12 Nov 2006
Posts: 173
|
11-28-2006 07:13
Ah I see, didn't read your question properly. What I understand, the Warp-thingy uses only one option (PRIM_POSITION). But very fast over and over again in a loop to avoid delay.
Maybe it's possible to combine your wishes by doing a syntax something like this? I doubt it tho:
llSetPrimitiveParams([PRIM_SIZE | PRIM_POSITION, <x, y, z>,<x,y,z>]);
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
11-28-2006 07:14
From: Geuis Dassin Yeah, I've already got this. But how can I combine the PRIM_SCALE and PRIM_POSITION changes to be simultaneously done, instead of one after the other. I think this is how WarpPos does it. By putting them both into the list llSetPrimitiveParams([PRIM_SIZE, <1, 1, 0>, PRIM_POSITION, <128, 128, 40>]);
But remember they will still be actioned in the order that they appear in the list albeit faster than if called individually. WarpPos works because you can pass in more than 1 set of requests at once and SL automatically applies each item.
|