Keep object from going through the floor

Currently there is no guide for this but it’s possible via the same method of using two cameras

Example: https://playcanvas.com/project/820368/overview/gun-clip-on-top

The important part is to ensure the weapons camera is clearing the depth buffer (so it can render on top) but not clearing the color buffer.

2 Likes