This object provides access to the Hololens interface.
Other related reference items
attach_entity ( entity, world, anchor_id, position, rotation ) : booleanAttaches an entity with a transform component to an anchor
|
entity : | The entity to attach | |
world : | The world containing the entity | |
anchor_id : | integer | Id of the anchor to attach to |
position : | Optional position offset relative to the anchor The ? notation indicates that this type is optional: there may be zero or one instances of it. | |
rotation : | Optional rotation offset relative to the anchor The ? notation indicates that this type is optional: there may be zero or one instances of it. |
boolean |
True if the entity was attached |
The transform component will be updated to keep the entity from drifting in space.
create_anchor ( position, rotation ) : integerCreate a Spatial Anchor at position.
|
position : | Position of anchor | |
rotation : | Optional rotation of anchor The ? notation indicates that this type is optional: there may be zero or one instances of it. |
integer |
Anchor Id |
Returns a anchor_id used to track the anchor.
Use Hololens.destroy_anchor() to destroy the anchor when it's no longer in use.
destroy_anchor ( anchor_id )Frees up the resources used by the anchor with supplied id.
|
anchor_id : | integer | Id of the Spatial Anchor to destroy |
This function does not return any values. |
Other related reference items
detach_entity ( entity, anchor_id )Detaches an entity from a Spatial Anchor, stopping the transform component from being updated.
|
entity : | The entity to detach | |
anchor_id : | integer | Id of the anchor to detach from |
This function does not return any values. |
head_pose ( ) : stingray.Matrix4x4Returns the head pose
|
initialize ( render_target, camera, world ) : booleanInitializes Hololens system.
|
render_target : | string | The stereo render target name. |
camera : | The camera used for stereo rendering. | |
world : | The world containing the camera. |
boolean |
Returns true if Hololens was initialized properly, otherwise returns false. |
interaction_held ( interaction ) : booleanWhether an interaction (hand/controller) is held.
|
interaction : | number | Interaction Type [Hololens.HAND, Hololens.CONTROLLER] |
boolean |
true if a press has been continued over from a previous frame, or false otherwise. |
interaction_pressed ( interaction ) : booleanWhether an interaction (hand/controller) has detected a press event.
|
interaction : | number | Interaction Type [Hololens.HAND, Hololens.CONTROLLER] |
boolean |
true if a press event has been detected since the last frame, or false otherwise. |
interaction_released ( interaction ) : booleanWhether an interaction (hand/controller) has detected a release event.
|
interaction : | number | Interaction Type [Hololens.HAND, Hololens.CONTROLLER] |
boolean |
true if a release event has been detected since the last frame, or false otherwise. |
set_focus_point ( point )Informs the system about a specific point in your scene to prioritize for image stabilization.
|
point : | The world-space coordinate to set the stabilization plane to. |
This function does not return any values. |
spatial_map_setup ( entity, material, world )Specify the environment map unit to be filled with surface geometry meshes.
|
entity : | Empty entity which will have mesh components for each surface detected by the Hololens | |
material : | string | Name of material |
world : | World containing the entity |
This function does not return any values. |