VrRemotePoseFrame class

Immutable high-frequency sample sent by the child controller.

Quaternion/vector components are stored as scalars so callers cannot mutate a frame after it has crossed an asynchronous transport boundary.

Constructors

VrRemotePoseFrame({required int sequence, required int senderTimestampMicroseconds, required Quaternion orientation, Vector3? angularVelocity, Vector3? accelerometer, int buttonsBitset = 0, double? touchX, double? touchY, double? rangeMeters, VrRangeSource? rangeSource, double? rangeConfidence})
factory
VrRemotePoseFrame.fromJson(Map<String, dynamic> json)
factory

Properties

accelerometer → Vector3
Raw accelerometer sample after screen-axis normalization, including gravity.
no setter
accelerometerX double
final
accelerometerY double
final
accelerometerZ double
final
angularVelocity → Vector3
no setter
angularVelocityX double
final
angularVelocityY double
final
angularVelocityZ double
final
buttonsBitset int
final
hashCode int
The hash code for this object.
no setteroverride
orientation → Quaternion
no setter
qw double
final
qx double
final
qy double
final
qz double
final
rangeConfidence double?
final
rangeMeters double?
final
rangeSource VrRangeSource?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderTimestampMicroseconds int
final
sequence int
final
touchX double?
final
touchY double?
final

Methods

copyAccelerometerTo(Vector3 target) → void
copyAngularVelocityTo(Vector3 target) → void
copyOrientationTo(Quaternion target) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override