WTInstantTracker Class Reference
Inherits from | NSObject |
---|---|
Declared in | WTInstantTracker.h |
Overview
Instant trackers start in initializing state, during which the origin of the tracked scene can be set by rotating the device. Displaying a gravity aligned plane or target in the center of the screen can help users through this process. After this was set, the instant tracker can instantly transition to the tracking state, during which the actual tracking of the scene takes place.
delegate
The delegate object that is associated with this instant tracker object.
@property (nonatomic, weak) id<WTInstantTrackerDelegate> delegate
Discussion
The delegate object is usually set through the appropriate WTTrackerManager factory method.
Declared In
WTInstantTracker.h
– setActiveInstantTrackingState:
Changes the tracking state of the instant tracker
- (void)setActiveInstantTrackingState:(WTInstantTrackingState)state
Parameters
state |
The new state to which the instant tracker should switch to |
---|
Discussion
The tracking state is not changed immediately, and the didChangeState method can be used to get notified of exactly when that happens.
Declared In
WTInstantTracker.h
– setDeviceHeightAboveGround:
Allows changing the estimated height at which the device is currently above the ground.
- (void)setDeviceHeightAboveGround:(NSNumber *)height
Parameters
height |
The estimated device height above the ground |
---|
Discussion
Setting this to an appropriate value will allow the augmentations to have a scale close to the one they would have in reality.
Declared In
WTInstantTracker.h