Isn't it just applying a torque to rotate the bike?
Or do you mean the riders body changing position...? I think that is just a picture moving, no physics there.
the stunts in the reference game is animation. But how the stunts are made while the bike is in air?
you cannot made the stunts in floor. Do you understand me?
yeah thanks. I think it will help me. Let me try this.
is the foot sensor is only way to know the bike is in air or in floor?
or any other idea?
i need some more knowledge about contactlistener.
You could also use the normal fixture of the bike, eg. the wheels and body.
A 'foot' sensor just allows you to extend the detection area and make it a bit larger than the bike itself.
What is it about the contact listener that you don't understand? You really need to get in the habit of making more specific questions 🙂
can you explain me in detail about how can i detect the bike is in air by using the wheel or body fixture?
As i'm weak in this, anyway trying to learn and do the game successfully by using box2d.
And most of the tutorial i saw the GetContactList, setContactListener for detection of contacts between the bodies.
Do i want to use the GetContactList to detect the bike contacts in floor?
The link above already explains it in detail and has source code for you to check as well.
Let us know when you can identify a specific part of it that you do not understand.
So far I understood that i should make changes in BeginContact() and EndContact() to check the collision detection between the Bike and the ground.
Mostly i'm seeing the examples by checking the UserData of the body.
Bike type is dynamic and the floor path is static
Can i check the collision by using body types?
can i have the boolean value to check the contacts or by using the count in my case?