Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by TheBeardyMan

Suppose that you have a custom camera that needs to see the interior of a walled room from a viewpoint outside of the room. Not an unusual thing in video games in general - there are several games that do this.

But not so easy to create in Dreams. You need to turn off the visibility of any walls that occlude the interior of the room, which requires you to determine on which side of the plane of the wall the camera lies. You might think that a Trigger Zone tweaked to detect cameras could do this, but the Trigger Zone doesn't have a zone shape that will detect on which side of a plane something lies and do nothing else. The cube, cylinder, and cone zone shapes have flat surfaces that can serve as planes, but even at their largest sizes, their other surfaces can cause false results if you try to use them to solve the problem of whether a wall occludes the interior of a room.

An infinite plane zone shape would make the Trigger Zone an ideal gadget for solving this problem. And the math for an infinite plane is simpler than the other shapes - one scalar product and one compare. Compare that with the cube zone shape, whose simplest possible math is three scalar products and six compares.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.