Author Topic: gravity  (Read 1472 times)

I remember I was testing out a planet mod I was making for a DM, and I had used this method and I didn't have any of the problems you stated, for example, I went into a zone with regular gravity, hoping that it would be applied, but I still was in zero gravity from the zone I gave the player.
That's because 1 times 0 happens to be 0. When in two physical zones, your gravity is a product of the two. I was referring to low gravity, not zero.

Also I am certain the zone was smaller then the player object.
That's not an issue in and of itself. The problem occurred when you place the zone within the player, not when you walked through a small zone.

That's because 1 times 0 happens to be 0. When in two physical zones, your gravity is a product of the two. I was referring to low gravity, not zero.

That's not an issue in and of itself. The problem occurred when you place the zone within the player, not when you walked through a small zone.
Wasn't aware of the first thing, but the zone was created inside the player, and was smaller, if I can find the script, I'll make sure I am not mistaken.

NoEdit: I was mistaken, it was a 4x cube.
Perhaps just search if a player object is near, then share a cube between the two instead of overlapping? (Assuming they have the same gravity, which they should)

NoEdit: I was mistaken, it was a 4x cube.
Perhaps just search if a player object is near, then share a cube between the two instead of overlapping? (Assuming they have the same gravity, which they should)
It would be nice if you had a callback for when a player enters the physical zone so you didn't have to make something as simple as changing gravity even more of a hack. If you just want every players' gravity to be the same, it's fine to just cover your map in large zones. But, I still think it would be great if Badspot implemented some setFakePhysicalZone method so we could set it for individual players, for minigames, or even through events, to make the functionality more accessible to the average user. Could also make use of other fields like applied force for a good way to do acceleration through script, or drag, maybe even the water properties.