How to make a player(kinematic object) stay ontop of a box(dynamic object)

I am benginner, and want to make it so my character, can move and jump on a box for a puzzle platformer, I am having trouble as the player moves through the box instead of staying on it, any advise.

Kinematic colliders do not participate in the physics simulation, as such they are not moved by the engine and are not automatically separated from other colliders either.

Instead, by putting a kinematic collider on an object, that object will then receive contact_point_response messages whenever it overlaps with another collider. The script then has to separate the object as you see fit.

I suggest you read through this: Resolving kinematic collisions in Defold

1 Like

You can try giving it’s collision object a different collision group than the box’s collision objects in question. Also make sure you add shapes to your collision objects.