Skip to content

Placing objects

Cedrok edited this page Oct 4, 2023 · 3 revisions

General rule

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.

Buildings and rooms

A building is placed in the world coordinates system

bd placement

A room is placed inside a building: it will use the building coordinates system instead of the world one.

ro placement A ro placement B

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

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.