hi , how can someone make a graviety that changes with the tepography of
the track , just consider that there is a spiral street like in the
game sonic
how can i make the graviety catch him to the floor like in this image
That’s centrifical force that does that. The faster the driver is going the more the bike lays down in a turn. It will probably look pretty good if the bike just lays down when turning, so an action or ipo connected to the turning keys would look pretty good. If you took velocity into account it would look a little better.
Those are logic bricks - what we are saying is that you need to have a plane with ‘ghost’ enabled. Set up the bike so that when it is touching the plane, a property is on, and when it is not touching, the property is off. Then set it up so when the property is on, do a motion actuator of -Z local to disable gravity, or even push the bike down(locally) against the track.
To correctly do this it would require complex python - on the area of the loop, you would put an invisible ghost grid, and when the player is touching the grid, you would make a mathematical function that assigns gravity according to the rotation and Z position of the bike.
Here’s what I was talking about: How to do an inversion
The light pink cube is the racer. The dark pink loop is a ghost object with property “upsidedown”. The black loop is the racetrack. The logicbricks belong to the racer.