Page 1 of 1

Weightless? Zero-G?

Posted: Fri May 07, 2021 1:39 pm
by Baroun Tardis
Back in SL, one could put an llSetForce in an attachment and produce an avatar that floats in zero-G

OpenSim doesn't support the use of this command in an attachement.. sigh.

Has anyone found a work around?
Wanting to add zero-G to my spaceship simulations...

Right now, I'm about to punt and make a poseball sized vehicle with a forced sit that occurs when an avatar is standing in a micrograv area.

Re: Weightless? Zero-G?

Posted: Sun May 09, 2021 11:00 pm
by Baroun Tardis
Looks like this can be faked with llSetHoverHeight , llMoveToTarget and llStopHover
Have to do some math in the HUD to track momentum.
Repeated llMoveToTarget works, but it's super bumpy. Setting hover height smooths it out.

Side note: adding in code for llWater allows you to make a script that lets you swim on the surface rather than walk along the bottom