- Home /
Question by
Jadrus · Feb 06, 2014 at 08:15 PM ·
planeinvisibleinvisible-objectcut
I only see one part of an object crossed by a plane
I wish I could use a plan to cut in half all the objects in the scene, or cross the floor with the objects in the scene and make visible only those on one side of the plane. I hope I made it clear. Can anyone help me. Hello Jadrus
Comment
Answer by robertbu · Feb 06, 2014 at 08:18 PM
You can do this using Unity's mathematical plane class. You define the plane with a point and a normal. You can use Plane.GetSide() to determine what side of the plane a point belongs on, and disable the renderer for any objects that are on the wrong side of the plane. I'm not sure how you want to handle objects that are cut by the plane, so there may be a bit more work for these objects if testing the pivot point is not good enough.
Your answer
![](https://koobas.hobune.stream/wayback/20220613132730im_/https://answers.unity.com/themes/thub/images/avi.jpg)