So I've been playing around with the new Orthographic camera example in the new stable release and was wondering if it's possible to make the player jump and being able to jump on the 3d cubes. I've tried to play with tweening the z elevation of the player but I think I'm missing something to make him able to jump on the cubes. Thanks
Develop games in your browser. Powerful, performant & highly capable.
There is no 3d collision detection. Your best bet is to tween the z, and place the objects of different layers. Layers with a different z.
The workaround is to check if the objects are overlapping (x/y), then add a second condition comparing the z height of one object (the solid, or "floor") with the z elevation of the other (the player). This only works for "flat" surfaces.