How to have 2d physics in 3D scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Bartosz

I’m trying to figure out if it is possible to easily create game using 3d models but with 2D physics - something like Trine
I’ve seen example of using 3d in 2d but it has one problem - in editor you see either 2d scene or 3d, sprites using viewports are visible only after starting scene.

Is it possible to render those sprites in editor or alternatively how to limit 3d physics to single plane?

:bust_in_silhouette: Reply From: kubecz3k

Use Axis Lock property of RigidBody. For platformer I believe you will want to lock Linear Z and Angular X and Angular Y (assuming your camera is looking towards Z axis)

Thanks. That exactly what I was looking for.

Bartosz | 2018-03-12 16:55