Jumping on a cube

Hi,

I need help. I want to command a 3D figure to jump on top of a cube. The problem with this is that there is a box collision setting with each cube. If this is disabled, then the figure will simply go through the cube. Any ideas on how to do this?

Thanks,

John Michael

The collider has to be active for it to work, so that is why it would go through the cube when you disable it.

Make sure that you have colliders on both objects, and that they are placed correctly.

Check out this tutorial for more specific details:

Jumping - 0077 Unity (Jumping) - YouTube

Colliders - Unity 3D: Introduction to Colliders - YouTube

Please feel free to let me know if you have any specific questions, or issues.

If this is a NPC, you could add an animation of it going up and down.
If this is a Player, you could change the physics material.

Hope this helps! :slight_smile: