Add this script to a GameObject in your world.
Add a Box Collider (or any collider) and check "Is Trigger" if you want zone-based flight.
Adjust the exposed variables in the Inspector:
flightSpeed (default 15) — how fast you fly.
acceleration (default 25) — how quickly you speed up/slow down.
flightGravity — set to 0 for true zero-G.
useZone — enable if you want flight only inside the trigger.
zoneOnlyWhileInside — if true, flight turns off when you leave the zone.
allowManualToggle — allow clicking even when using zones.
Comments
No comments yet... start a discussion to get things started... or join our discord to get help from the community.