Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Physical object is weightless?

Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
06-24-2009 13:25
So, I've made a bird cage on a rope, made it physical and roped it to a non-phyical object with a rope script.

Thing is, the cage always shifts, which is intended since it's physical, but it gets stuck floating in a sideways position. I've tried using llSetBuoyancy in the bottom most prim of the object with a buoyancy to make it sink, but it doesn't seem to make a difference (Well, it does- but the object stays sideways, it doesn't fall back to a verticle position). Does anyone know if there's a way to make this work?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
06-24-2009 13:50
Objects aren't simulated to the prim level, any bouyancy or force on an object applies to the whole object.

What you need to do is limit the rotation around X and Y:

llSetStatus(STATUS_ROTATE_X|STATUS_ROTATE_Y, FALSE);
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
06-24-2009 13:52
So there's really no way to make the bottom of the cage "heavier" than the top, to pull it into that vertical position again?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
06-24-2009 14:00
You could write a script to calculate the torque needed to do the job and periodically apply it.

Or simply avoid letting it tip over in the first place.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
06-24-2009 14:04
Ah, I was hoping there was an easy way. The rotate status script works, though. Thanks.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
06-24-2009 15:39
You could try seeing if the vehicle code works for you. I don't think you have to have someone sitting on a vehicle to use it.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
06-24-2009 20:30
Making the bottom, "heavier," so it falls when rotationally perturbed would probably best be done with careful use of llRotLookAt() or a similar function. On the whole, disabling rotation as suggested is likely to be a lot easier and more gratifying.
Jack Abraham
Lantern By Day
Join date: 11 Apr 2008
Posts: 113
06-25-2009 13:31
From: Argent Stonecutter
You could try seeing if the vehicle code works for you. I don't think you have to have someone sitting on a vehicle to use it.

You do not; I use it for unmanned robots and missiles.