Hello. I’m making a bike, I put a BodyGyro
in it to prevent it from falling over, it works just like I want it to, but there’s a problem where the position doesn’t align if you’re driving to other surfaces such as ramps, etc. Here’s a picture of what I mean.
Thanks for any help
Use raycasting to orient the BodyGyro to the floor.
Here is an example of what I did with a unicycle instead of a bike and with AlignOrientation instead of BodyGyro, should be the same concept.
Hmm, if you want to make it a car you might want to connect the wheel onto the character using constraints if you looking for a physics-based approach solution.
In fact, I made a similar one-wheeled vehicle using constraints and the AlignOrientation constraint attached to an anchored block being moved by CFrames to make the vehicle upright.
https://streamable.com/nzayl6
The script uses the carkit script which I learned from which is not very good since it’s a while true do loop (similar to th…
1 Like
Thank you so much for replying! You made my day!!!
I’m going to try that right now…
So I tried using AlignOrientation
, but it starts to fall again. What should I do?
1 Like
I got it working! Thanks to this post:
I tried this, you can’t steer after using this, but I am figuring something out
I mark the answer as a solution because it did help me out, it just bug after bug
Thank @dthecoolest too