look with this code that I don't understand, you will see it seems to modify the direction of the gravity force vector: postStep = (e)=>{
vel = vel + [ - math.sin(Sim.gravityAngleOffset), math.cos(Sim.gravityAngleOffset)] * Sim.gravityStrength * e.dt;
}
In the guide I'm looking at, the description for the Sim.gravityAngle code
Offset is: Direction of gravity in radians. Unlike other rotations, 0 is down.
If you're looking for techniques to design buildings that require less power without sacrificing realism, I highly encourage you to check out my scenes. Not only will you be able to discover an overview of my approach, but it could also offer you an opportunity to learn and adapt my methods to your own creations.
I often used math.vec.len(vel) in my scenes. except that one day I went into my scenes and the objects I programmed were no longer doing what they were supposed to do