July 2017
Beginner to intermediate
390 pages
10h 53m
English
Start a new HoloGraphic project. Do not do anything special; we only need to have our cube floating in front of us.
In the main method, we will make some changes. First, find the referenceFrame field and change its type to SpatialLocatorAttachedFrameOfReference.
In the SetHolographicSpace method, this field is set. Change it to look as follows:
referenceFrame = locator.CreateAttachedFrameOfReferenceAtCurrentHeading();
This was a call to CreateStationaryFrameOfReferenceAtCurrentLocation, but we do not want a stationary frame; we want an attached frame.
In the Update() method, we use this to assign a coordinate system to the currentCoordinateSystem field. Change it to look as follows:
SpatialCoordinateSystem ...
Read now
Unlock full access