class MRUKRoom(var anchor: Anchor)
MRUKRoom
(
anchor
)
|
anchor
: Anchor
[Get][Set] |
Signature
var anchor: Anchor |
anchors
: MutableList
[Get] |
List of all anchor entities in this room.
This includes all spatial anchors detected in the room such as walls, floors, ceilings, and furniture. Each entity contains components like MRUKAnchor, MRUKPlane, or MRUKVolume that describe its properties.
Signature
var anchors: MutableList<Entity> |
ceilings
: MutableList
[Get] |
Signature
var ceilings: MutableList<Entity> |
entity
: Entity?
[Get][Set] |
Signature
var entity: Entity? |
floors
: MutableList
[Get] |
Signature
var floors: MutableList<Entity> |
globalMesh
: MRUKMesh?
[Get][Set] |
Signature
var globalMesh: MRUKMesh? |
roomBounds
: Bound3D
[Get][Set] |
Signature
var roomBounds: Bound3D |
roomMesh
: MRUKRoomMesh?
[Get][Set] |
Signature
var roomMesh: MRUKRoomMesh? |
walls
: MutableList
[Get] |
Signature
var walls: MutableList<Entity> |
create
()
|
Creates and initializes the room entity.
This method must be called before using the room to ensure the entity is properly initialized.
Signature
fun create() |
destroy
()
|
Destroys this room and all associated entities and anchors.
This method cleans up all resources associated with the room, including destroying all anchor entities and the room entity itself. After calling this method, the room should not be used.
Signature
fun destroy() |
getKeyWall
()
|
Returns the wall entity with the largest width in the room.
The width is determined by measuring the x-axis extent of each wall's plane component. This is typically used to identify the most prominent wall for content placement or alignment.
Signature
fun getKeyWall(): Entity? Returns
The widest wall entity, or null if no walls exist or no walls have a MRUKPlane component
|
isPositionInRoom
(
position
, testVerticalBounds
)
|
Checks if a given position is contained within the room's boundaries.
This method determines whether a 3D position falls within the spatial bounds of the room. It can optionally test vertical bounds to check if the position is between the floor and ceiling.
Signature
fun isPositionInRoom(position: Vector3, testVerticalBounds: Boolean = true): Boolean Parameters
testVerticalBounds:
Boolean
Returns
Boolean
|
setPose
(
pose
)
|
Signature
fun setPose(pose: Pose) Parameters
pose:
Pose |