Sliding problem (I want to stay stable in moving bus)

I have sliding problem in this very, very easy not complicated scene.
Why it’s happening? How can I repaire this? I want to stay stable in my moving bus! ;D

Please, help!

Parent player to bus while bus is moving?

Well, at the beginning the bus is arriving to the bus station, and the controller waits for bus, so I don’t know how to set it all up. ; (

Please help

add material to both object and adjust the elasticity .value the movement in the file is kinda making me dizzy… i cant try much

edit: add friction

I’ve not looked into the file, but here’s how I would do it:

- Get on bus, take seat (or not) - I’m assuming this part you’ve done already

  • When player is on bus and bus is moving = parent to bus (Example)
  • Then, when bus gets to a stop/station, remove parenting so that player can move around/get off (Example)

But honestly this really all depends on how you’re planning to set up your gameplay.

Thanks a lot. As soon as I check your advices I’ll post what helped me ; )

For everyone with similar problem:

Watch that tutiral.
BTW. that guy is awesome. The best BGE tutorials in the business in my opinion ; )

another more subtle method,

Ray(-Z) Vehicle------python

import bge
cont = bge.logic.getCurrentController()
own= cont.owner

Ray = cont.sensors['Ray']

if Ray.postive:
    Diff = own.worldLinearVelocity-hitObject.worldLinearVelocity

    own.worldLinearVelocity = own.worldLinearVelocity+(-Diff*.1)


Tested - works

with a little modifications


MagicCarpet.blend (461 KB)