In one of my games, Deadline, I am attempting to make the bike stick to the walls properly. However, my current methods of doing so only work with certain angles, any angles too steep or upside-down the vehicle will not register, and in term, will cause it to bug out.
As you can see, in this video, it’s clearly demonstrated working correctly on angles like these:
https://gyazo.com/2920422d16b1ed2139c585253180d2e9
However, the goal is to get the bike to stick on angles such as these:
https://gyazo.com/a66e5b2cbbe5f9192a07f3483fd465da
At the moment, I have an understanding on how all of this works, my current method for this is RayCasting on the bike’s axis, and finding the nearest surface, if the surface is available, I will replicate the data based on that surface, this includes angles, ect, seen and demonstrated correctly on this Tweet:
( just keep in mind, the little part you see in that video is the RayCasting to surfaces, preparing for the bike and the suspension, ect, as the bike didn’t climb surfaces correctly previous to the RayCasting method )
I do hope I explained my issue well, and what I’ve attempted to do to fix this. I am just wondering what method I should use to go on about this, as I am a bit lost when it comes to this part of the game. Thank you to anyone who helps! Have a good one.