Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

AuRea 1.0.2

class AuWorld(val session: ARSession) : AuNative, AuContainer

Represents the root AR world associated with an ARSession.

An AuWorld manages anchors, tracks viewport changes, and drives the rendering/update loop by synchronizing the AR session with the native Aurea world.

It also acts as a container for entities through AuContainer.

Constructors

constructor(session: ARSession)

Types

data class HitResult(val id: Long, val distance: Float)

Properties

val session: ARSession

Inherited properties

The handle to the native resource.

Functions

fun add(anchor: AuAnchor)

Adds an anchor to the world.

Performs a hit test on the AR world.

Updates the AR session and renders a frame.

fun onSurfaceChanged(rotation: Int, width: Int, height: Int)

Updates the viewport configuration when the rendering surface changes.

fun onSurfaceCreated(context: Any?)

Notifies the world that the rendering surface has been created.

fun remove(anchor: AuAnchor)

Removes an anchor from the world.

Removes all anchors currently attached to the world.

Removes and returns the most recently added anchor.

Sets the DFG lookup texture used for specular image-based lighting.

Inherited functions

open fun add(entity: AuEntity)

Adds the specified entity to this container.

open override fun close()

Release the native resources.

open fun remove(entity: AuEntity)

Removes the specified entity from this container.

Removes all entities currently attached to this container.

open fun removeLastEntity()

Removes the most recently added entity from this container.