I have been working on a school project for my final year and I chose to create a game similar to the wipEout and F-Zero series. The majority of my project has been based around the art side of things. I need some help with a player control script that makes the player hover a certain distance above the track, move forward when the up key is pressed, steer and roll left and right on the left and right arrow keys and I want the player to be able to “defy gravity” (the player can go on walls and ceilings). I know this is a big ask, but any help will be GREATLY appreciated. ![]()
Here’s an example of this:
Raycast will be your friend, shoot ray down, then adjust floating distance based on hit distance…
Or could just put big invisible collider at the bottom,
with custom gravity direction (center of the road…)
also some ideas,
i’ve seen couple other topics on hover physics, but didnt find it just now…
http://lmgtfy.com/?q=anti+gravity+script+unity
haha just kidding i have no idea…
How do I Google?
Derp ![]()
Let me tell you that Physics.addforce is really damn hard to pull off right for a hovering vehicle. I tried that in psi.kart in my sig below for like a month before I just put some wheelcolliders on the vehicle and gave up. I would still like to figure out someday though. It just takes alot of conditional code and adjusting of ratios of things to get it to actually reliably and stably hover.