Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-15-2009 04:41
is it possible to use LsL to randomly shape a prim on rez?
eg type, size, rotation, twist/skew, hollow/ hollow shape.
i want to have one prim "bullet" as a piece of shrapnel that randomly changes. if i have to have one for each of the major Prim types.
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
09-15-2009 05:20
Sure, look at http://wiki.secondlife.com/wiki/LlSetPrimitiveParams and do something like: llSetPrimitiveParams([PRIM_TYPE,PRIM_TYPE_BOX,llFloor(llFrand(4) + 1) * 16,< llFrand(1),llFrand(1),0>,...]);
|
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
09-15-2009 09:50
It seems like calling llSetPrimitiveParams on rez for every piece of shrapnel would be rather inefficient. Maybe it would be better to create a handle of preset shapes instead?
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-15-2009 14:34
From: Vance Adder It seems like calling llSetPrimitiveParams on rez for every piece of shrapnel would be rather inefficient. Maybe it would be better to create a handle of preset shapes instead? so make a Box, Sphere, Cylinder, Ring, Torus & just set the prim params in each. or would using sculpties work and random textures. (would look interesting)
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
09-15-2009 14:42
If you're worried about efficiency... flee from sculpties as if they're a swarm of bees.
llSetPrimitiveParameters is really not that bad.
|