Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-13-2009 15:37
not sure if anyone has ever tried this before, but i had an idea for using llVolumeDetect with flexis, and it works! the state entry turns off volume detect, flex and phantom as volume won't work if the prim was already phantom. and the collision detects the velocity that it was "collided" with, and pushes the flex force accordingly, and then turns off the flex and lets it settle itself. i wouldn't use anymore than the built in delay with llSetPrimitiveParams, and i wouldn't turn off flexi after the collision cause it gave me some jerky results default { state_entry() { llVolumeDetect(FALSE); llSetPrimitiveParams([PRIM_FLEXIBLE, FALSE, 2, 0.3, 2.0, 0.0, 1.0, <0.0,0.0,0.0>]); llSetStatus(STATUS_PHANTOM,FALSE); llSleep(.25); llVolumeDetect(TRUE); }
collision_start(integer total_number) { llSetPrimitiveParams([PRIM_FLEXIBLE, TRUE, 2, 0.3, 2.0, 0.0, 1.0, llDetectedVel(0)]); llSetPrimitiveParams([PRIM_FLEXIBLE, TRUE, 2, 0.3, 2.0, 0.0, 1.0, <0.0,0.0,0.0>]); } }
|
Vladimir Petrichor
Registered User
Join date: 6 Apr 2006
Posts: 19
|
09-13-2009 18:26
Though I didn't read the code to check for actual similarities, I have something like that in a beaded curtain in the Spell Caster Bazaar area. Not being a curtain or even furniture maker I'd never got around to doing anything else with...really more of a tentacle man myself.
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-13-2009 19:29
cool cool, it was just a random thought, tried it, and realized i'd never seen it come up in the forum so i figured i'd share
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
09-13-2009 20:09
What you can do, instead of turning off flexing in one step is reduce the amount of flexiness in steps before turning it off to give it a move smoother stopping motion.
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
09-13-2009 21:00
Ante Flan (the original inventor of SL waves) was doing this a long time ago, in his shack on Furtopia beach. I don't think he ever productized it, but it was a cool effect with one of those '60s love-beads curtains.
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-13-2009 22:01
From: Destiny Niles What you can do, instead of turning off flexing in one step is reduce the amount of flexiness in steps before turning it off to give it a move smoother stopping motion. what i meant was to simply remove the force and let the flexi fall on its own. and when i had added a small delay in between llSetPrimitiveParams, it looked to me like the force lasted too long. so the built in delay seemed sufficient to me. i might try using llSetLinkPrimitiveParams to the link set, but from what i've seen, for some of the params, there's a limit to the number of links you can do it to at once and would have to do a loop which probably wouldn't look right
|