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
|
Gets or sets an arm model.
|
ControllerHand
|
GvrControllerHand
Gets or sets the controller hand used for this tracked object.
|
ControllerInputDevice
|
Gets the controller input device for this tracked object.
|
IsDeactivatedWhenDisconnected
|
bool
Gets or sets a value indicating whether the object's active status is determined by the controller connection status.
|
Public functions |
|
---|---|
PropagateArmModel()
|
void
Propagates the arm model to all
IGvrArmModelReceiver s. |
Properties
ArmModel
GvrBaseArmModel ArmModel
Gets or sets an arm model.
Used to control the pose (position and rotation) of the object and to propagate to children that implement IGvrArmModelReceiver
.
An arm model used to control the pose (position and rotation) of the object, and to propagate to children that implement IGvrArmModelReceiver
.
ControllerHand
GvrControllerHand ControllerHand
Gets or sets the controller hand used for this tracked object.
The controller hand used for this tracked object.
ControllerInputDevice
GvrControllerInputDevice ControllerInputDevice
Gets the controller input device for this tracked object.
The controller input device for this tracked object.
IsDeactivatedWhenDisconnected
bool IsDeactivatedWhenDisconnected
Gets or sets a value indicating whether the object's active status is determined by the controller connection status.
Value true
if the object's active status is determined by the controller connection status, false
otherwise.
Public functions
PropagateArmModel
void PropagateArmModel()
Propagates the arm model to all IGvrArmModelReceiver
s.
Should only called when ArmModel is instantiated or changed.