Complete example
Here’s a complete example creating a room with a door and two windows:Understanding door quadrants
Doors in OpenPlans use a quadrant system to determine which direction they open:Quadrant 1
Door opens to the right when viewed from the front
Quadrant 2
Door opens to the left when viewed from the front
Quadrant 3
Door opens to the left when viewed from the back
Quadrant 4
Door opens to the right when viewed from the back
Configuring door rotation
ThedoorRotation property controls how far the door is open:
The rotation value ranges from 1 (fully open) to 2 (fully closed). The value represents a divisor for π, so
1.5 means π / 1.5 radians.Creating interactive door controls
Based on the example frombaseDoor.html, here’s how to add interactive controls:
Window types
OpenPlans supports multiple window types:Window configuration example
From thebaseSingleWindow.html example: