The default origin to use when calling getEntityPose. By default, this is the localOriginEastNorthUp reference frame.
The time in milliseconds since the previous timestamp, capped to ContextService.maxDeltaTime
The collection of all entities this application is aware of.
An event that is raised when the next frame state is available.
An event that fires when the local origin changes.
An entity positioned near the user, aligned with the local East-North-Up coordinate system.
An entity positioned near the user, aligned with the East-Up-South coordinate system. This useful for converting to the Y-Up convention used in some libraries, such as three.js.
This value caps the deltaTime for each frame. By default, the value is 1/3s (333.3ms)
An event that is raised after the render event
An event that is raised when it is an approriate time to render graphics. This event fires after the update event.
The current (absolute) time according to the current reality. This value is arbitrary until the first ContextService.updateEvent.
A monotonically increasing value (in milliseconds) for the current frame state. This value is useful only for doing accurate timing, not for determining the absolute time. Use ContextService.time for absolute time. This value is -1 until the first ContextService.updateEvent.
An event that is raised after managed entities have been updated for the current frame.
The serialized frame state for this frame
Deprecated. Use timestamp property.
An alias for the 'eye' entity. To be deprecated in favor of ViewService.eye.
Deprecated. To be removed. Use the defaultReferenceFrame property.
Gets the current pose of an entity, relative to a given reference frame.
If the position and orientation exist for the given entity, an object with the fields position and orientation, both of type Cartesian3. Otherwise undefined.
Deprecated. To be removed.
Deprecated. To be removed. Use the defaultReferenceFrame property.
Process the next frame state (which should come from the current reality viewer)
Subscribe to pose updates for the given entity id
the id of the desired entity
A Promise that resolves to a new or existing entity instance matching the given id, if the subscription is successful
Subscribe to pose updates for an entity specified by the given id
the id of the desired entity
A new or existing entity instance matching the given id
Unsubscribe to pose updates for the given entity id
Generated using TypeDoc
Provides a means of querying the current state of reality.
This class adds the following message handlers to any sessions managed by the session service:
ar.context.subscribe- Subscribes the session to updates from an entity with the provided id.This service sends the following messages to managed sessions
ar.context.update- Indicates to this context that the session wants to be focused on.