How to raise the front wheel of the motorcycle with the push of a button and control it…
.
I am making a mobile game. And I want to put obstacles that the player must overcome on the motorcycle, and this game is 2D…and for that I have to make the bike rotate from front to back or from back to front…
Hey @mokomoka011!
To do this, you’ll use “Add Rotation” on the Y axis while the button is pressed, with the target being simply your static/skeletal mesh. Now, you’ll want to likely enable gravity and simulate physics, meaning when the button ISN’T pressed, it will fall. You’ll need to go into the details panel on your mesh and fine-tune the gravity settings, for sure! It’ll be a lot of testing to get juuust right.
I reckon that he is using a simulated skeletal mesh for moving the motorbike (like chaos vehicle). Therefore he won’t be able to reposition or rotate or whatever while it is simulated. I might be wrong though but that is what I think.
My guess is that you’ll either have to play with animations (which I do not recommend) or try to use forces to get your bike to the wheelie position.
I want any video fir that
Yeah, if that’s what is going on, definitely going to have to addforce/impulse low values.
@mokomoka011 You’ll use “Add Force” in the Y direction, but it’ll have to be a specific part of the skeletal mesh. Good luck! Physics-based gameplay is a long journey, and there isn’t much tutorial-wise out there.
Are you using kinematic motorbike or something like chaos vehicle?
I will use any bike
So you currently do not have a driveable motorbike in your project?
Yeas i don’t have
But i want to make like this
Well, it is not like I can tell you how to set up a whole motorbike I would suggest you try and learn some stuff about it first. There are two ways of doing it. A nicer, more realistic approach using a chaos vehicle system (I suggest you watch this video to understand the basics: Driving Around: Exploring Chaos Vehicles | Feature Highlight | State of Unreal 2022 - YouTube) or a simpler animations-based approach (Kinematic bike, I found this video but have not seen it so it is not like I can recommend it: Fully Drivable Kinematic Motorbike from Scratch - Unreal Engine 5 Blueprints Tutorial - YouTube)
I recently used the chaos vehicle system for a motorbike and it turned out really good (All is driven by physics = no animations required):
So it is up to you to decide and learn stuff about it, I really do not understand why you want to start with a wheelie.
Like the photo
Well then I am sorry, it is not like I can write you all the steps you need to do to create such game. It is a 2D game that is a whole different story then what I was just talking about
I want only . How can make rotate bike up… With blue brint