- Home /
Making a object hover
So i'm trying to make a game where the player hovers around about 3/4m off the ground at anytime no matter the incline or surface, i tried using raycast and making it apply force when the object was at a certain height but that didn't work, i was thinking that it would be good if i could use raycast to make sure that the height was always the same but to have it as a fast update so the player could go off a ramp at higher speeds instead of crashing into the ramp and causing problems. Any solutions or suggestions?
Answer by YoungDeveloper · Jan 19, 2014 at 04:56 PM
If you want to make it just as a visual effect, that is you dont need to react it from physics, you could fake the floating effect using single raycast and smooth up and down motion.
I forgot to mention that I'm trying to make it a multiplayer game as well.
I tried something similar but that created too much lag because it was trying to update on every single movement.
You could sync it on load only, or if its very important than once in time x.