The corresponding Java class is no longer documented, but it is still useful.
android :: NativeHeadTracker :: last_head_view
Fillmatrix
with the last rotation matrix calculated from head movements
android :: NativeHeadTracker :: neck_model_enabled=
Enable finer analysis using the neck as center of movementandroid :: NativeHeadTracker :: new
Instantiate a newNativeHeadTracker
for the given context
android $ NativeHeadTracker :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
jvm :: JavaObject :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
android :: NativeHeadTracker :: last_head_view
Fillmatrix
with the last rotation matrix calculated from head movements
android :: NativeHeadTracker :: neck_model_enabled=
Enable finer analysis using the neck as center of movementandroid :: NativeHeadTracker :: new
Instantiate a newNativeHeadTracker
for the given context
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
# Provides head tracking information from the device IMU
#
# The corresponding Java class is no longer documented, but it is still useful.
extern class NativeHeadTracker in "Java" `{ com.google.vrtoolkit.cardboard.sensors.HeadTracker `}
super JavaObject
# Instantiate a new `NativeHeadTracker` for the given `context`
new (context: NativeContext) in "Java" `{
return HeadTracker.createFromContext(context);
`}
# Start tracking head movement
fun start_tracking in "Java" `{ self.startTracking(); `}
# Stop tracking head movement
fun stop_tracking in "Java" `{ self.stopTracking(); `}
# Enable finer analysis using the neck as center of movement
fun neck_model_enabled=(value: Bool) in "Java" `{
self.setNeckModelEnabled(value);
`}
# Fill `matrix` with the last rotation matrix calculated from head movements
#
# Require: matrix.length >= offset + 16
fun last_head_view(matrix: JavaFloatArray, offset: Int) in "Java" `{
self.getLastHeadView(matrix, (int)offset);
`}
end
lib/android/cardboard.nit:37,1--65,3