Humanoid Control for Unity v4
|
A sensor used on the head of a humanoid.
Public Types | |
enum | ID { Head , LeftHand , RightHand , Hips , LeftFoot , RightFoot , Tracker1 , Tracker2 , Tracker3 , Tracker4 , Count } |
Public Member Functions | |
virtual void | CheckSensor (HeadTarget headTarget) |
virtual void | Init (HeadTarget headTarget) |
override void | Start (HumanoidControl _humanoid, Transform targetTransform) |
void | InitController (SerializedProperty sensorProp, HeadTarget target) |
void | RemoveController (SerializedProperty sensorProp) |
override void | Update () |
Update the sensor state. | |
virtual void | CheckSensorTransform () |
virtual void | SetSensor2Target () |
virtual void | UpdateSensorTransformFromTarget (Transform targetTransform) |
virtual void | Stop () |
virtual void | RefreshSensor () |
virtual void | ShowSensor (HumanoidTarget target, bool shown) |
Public Attributes | |
Vector3 | sensor2TargetPosition |
Quaternion | sensor2TargetRotation |
DeviceView | device |
The device to which the sensor belongs. | |
Tracker.Status | status = Tracker.Status.Unavailable |
Status of the sensor. | |
Static Public Attributes | |
const string | _name = "" |
Protected Member Functions | |
virtual void | CreateSensorTransform (string resourceName, Vector3 sensor2TargetPosition, Quaternion sensor2TargetRotation) |
virtual void | UpdateNeckTargetFromHead () |
virtual void | CreateSensorTransform () |
void | CreateSensorTransform (Transform targetTransform, string resourceName, Vector3 _sensor2TargetPosition, Quaternion _sensor2TargetRotation) |
void | RemoveSensorTransform () |
void | UpdateSensorTransform (Tracking.Sensor sensor) |
virtual void | UpdateTargetTransform () |
virtual void | UpdateTarget (HumanoidTarget.TargetTransform target, Transform sensorTransform) |
virtual void | UpdateTarget (HumanoidTarget.TargetTransform target, SensorComponent sensorComponent) |
Vector3 | GetTargetPosition (Transform sensorTransform) |
Quaternion | GetTargetRotation (Transform sensorTransform) |
void | UpdateSensor () |
Static Protected Member Functions | |
static Vector3 | TransformPointUnscaled (Transform transform, Vector3 position) |
Properties | |
HeadTarget | headTarget [get] |
HumanoidControl | humanoid [get] |
virtual new HumanoidTracker | tracker [get] |
override string | name [get] |
Vector | localSensorPosition [get] |
Rotation | localSensorRotation [get] |
Vector | sensorPosition [get] |
Rotation | sensorRotation [get] |
float | positionConfidence [get] |
float | rotationConfidence [get] |
|
virtual |
Reimplemented from Passer.Humanoid.HumanoidSensor.
|
virtual |
Update the sensor state.
Reimplemented from Passer.Humanoid.Tracking.Sensor.