Hello, I'm trying to make a wipeout mock up, but am finding coding it to be quite difficult. All i want to archive is a floating effect- but when i apply a force over that of gravity(9.82) the ship floats on and on forever. how can i keep the ship level above the ground?
1 Answer
1Have 2 scripts, if the thing goes to high go down, if goes to far down, goes up...
This'll give a hover effect, and keep the ship level... If this makes sense?
And you can do a ray from below the ship and gets to where it hits's Y value, and makes that its low, so then it hovers to that spot...
If that makes sense? Lol.
But of a confusing answer xD but yeah I'd quite simply go with cast a ray downward - if you're too low add some force upwards. No two scripts stuff, just push up if you're too low :)
– anon73820239