-
Notifications
You must be signed in to change notification settings - Fork 0
Placing objects
Cedrok edited this page Oct 4, 2023
·
3 revisions
For every object, we have to place it in it's parent space using position and rotation. Position (vector2) and rotation (float) are applied to the object's pivot which is placed at the bottom lower left corner of the object.
A building is placed in the world coordinates system
A room is placed inside a building: it will use the building coordinates system instead of the world one.
Inside a room, separators and pillars are placed regarding the room's origin. You can locate it by enabling localCS of the room in OGrEE-3D.
Racks and corridors are placed using a position (vector3) and a rotation (vector3), using the parent room coordinates system.
If you rotate the object around X or Y axis, you will have to update the position to compensate.