Author Topic: How come vehicles aren't affected by gravity zones?  (Read 808 times)

I had a pretty interesting concept thought up for a server that revolves around the player having 6 degrees of freedom (sorta) and floating around in a 0G environment, kinda like Corneroids. The only problem is that when I make a zone brick and set the gravity to 0, the vehicles still experience gravity and are pulled to the floor, therefore players cannot use skis and such in the 0G environment without suddenly experiencing gravity.

Is there any sort of work-around for this that I'm somehow missing?

pretty sure vehicles dont have collision inside certain conditions, for example, inside a block of any kind

I do not know of any workaround to that.  Aside from replacing the vehicle with a bot. :P

This is because the gravity zones work on playertypes, not physics objects. If you want to affect a physics object's gravity, check out the code for the Gravity Jeep.

There were vehicle zones but they were glitchy and didn't work properly.

This is because the gravity zones work on playertypes, not physics objects. If you want to affect a physics object's gravity, check out the code for the Gravity Jeep.
The gravity jeep is garbage, don't look at the code for that.

I basically just wanted to make the StrikerUnit experience no gravity. Basically results in perfect 6dof in Blockland (I think?), would be pretty useful for space themed builds.

The closest I've come to that is my AirSwimmer mod, and a player-type object.  ie. a bot.