GvrTrackedController
Represents an object tracked by controller input.
Summary
Manages the active status of the tracked controller based on controller connection status. Fetches a GvrControllerInputDevice
for the configured GvrControllerHand
and propagates the device instance to all IGvrControllerInputDeviceReceiver
s underneath this object on Start and if the controller handedness changes. If the controller is not positionally tracked, position of the object is updated to approximate arm mechanics by using a GvrBaseArmModel
. GvrBaseArmModel
s are also propagated to all IGvrArmModelReceiver
s underneath this object.
Inheritance
Inherits from: MonoBehaviour
Properties |
|
---|---|
ArmModel
|
Arm model used to control the pose (position and rotation) of the object, and to propagate to children that implement IGvrArmModelReceiver.
|
ControllerHand
|
GvrControllerHand
|
ControllerInputDevice
|
|
IsDeactivatedWhenDisconnected
|
bool
Is the object's active status determined by the controller connection status.
|
Public functions |
|
---|---|
PropagateArmModel()
|
void
|
Properties
ArmModel
GvrBaseArmModel ArmModel
Arm model used to control the pose (position and rotation) of the object, and to propagate to children that implement IGvrArmModelReceiver.
ControllerHand
GvrControllerHand ControllerHand
ControllerInputDevice
GvrControllerInputDevice ControllerInputDevice
IsDeactivatedWhenDisconnected
bool IsDeactivatedWhenDisconnected
Is the object's active status determined by the controller connection status.
Public functions
PropagateArmModel
void PropagateArmModel()