These forums are CLOSED. Please visit the new forums HERE
Object Floating on Water |
|
|
Lily Lioncourt
Dreamer in the Garden
Join date: 15 Jan 2005
Posts: 18
|
04-18-2008 07:13
Is there a simple script I can drop into an object to make it bob gently up and down as though floating on water?
_____________________
Those who would trade their freedom for safety deserve neither. - Benjamin Franklin
Who looks outside, dreams; who looks inside, awakes. Carl G. Jung |
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
04-18-2008 09:45
Not for any reasonable value of "simple."
Here's a thread (/54/67/200102/1.html) that describes an approach for physical objects. There's also a much less laggy approach possible for single-prim objects (say, a 1-prim sculpted duck) that will never be sat upon, based on an llTargetOmega trick, another (root) prim, some moderately hairy rotations, and an occasional resync link_message. That, however, is not really simple and relies on llTargetOmega() behaving itself. (And if somebody already has that script all working, I'd guess they'd charge for it.) Other than that, for non-physical, I suppose a timer loop of alternating llSetPos() calls, but the motion would look pretty jerky unless there were a bunch of them in slave scripts, I'd think. |
|
Blaze Nielsen
Registered User
Join date: 24 May 2005
Posts: 276
|
Stick in a swing script
04-18-2008 11:19
Is there a simple script I can drop into an object to make it bob gently up and down as though floating on water? Use a freebie swing script. (the rotations are borked a little right now however for target omega scripts) The effect will give you a gently rocking motion if you set it correctly. |
|
Lily Lioncourt
Dreamer in the Garden
Join date: 15 Jan 2005
Posts: 18
|
Searching my inventory
04-18-2008 11:44
I could have sworn that I had every little freebie gadget script I could collect - unhappily the swing script is not among them. Does anyone have a copy of that they could drop me? Pleeeez......
_____________________
Those who would trade their freedom for safety deserve neither. - Benjamin Franklin
Who looks outside, dreams; who looks inside, awakes. Carl G. Jung |