Humanoid Control for Unity v4
|
Humanoid Control options for torso related things
See the list of supported devices to get information on the hips target of each device.
For Mecanim compatible avatars, the correct bones are detected automatically. For other avatars, the correct bone Transforms can be assigned manually using the Bone parameters. It is also possible to override the default bones from Mecanim with your own choice by manual assignment of the bone. To return to the default bone, it is sufficient to clear the applicable Bone parameter.
For the spine and chest bones, it is possible to configure the limits of movement. The maximum angle can be set when Joint Limitations is enabled.
Body Rotation
Public Member Functions | |
override void | InitSensors () |
override void | StartSensors () |
TargetedBone | GetTargetBone (TorsoBones boneID) |
override Transform | GetDefaultTarget (HumanoidControl humanoid) |
void | RetrieveBones () |
override void | InitAvatar () |
override void | InitComponent () |
override void | StartTarget () |
override void | MatchTargetsToAvatar () |
override void | InitializeTrackingConfidence () |
override void | UpdateTarget () |
void | Cerebellum_UpdateTargets () |
override void | UpdateMovements (HumanoidControl humanoid) |
override void | CopyTargetToRig () |
override void | CopyRigToTarget () |
void | UpdateSensorsFromTarget () |
virtual void | NewComponent (HumanoidControl _humanoid) |
void | OnDrawGizmos () |
void | OnDrawGizmosSelected () |
virtual void | DrawTensions () |
virtual void | StopSensors () |
Static Public Member Functions | |
static HipsTarget | CreateTarget (HumanoidTarget oldTarget) |
static HipsTarget | SetTarget (HumanoidControl humanoid, Transform targetTransform, bool isLeft) |
static bool | IsInitialized (HumanoidControl humanoid) |
static void | DetermineTarget (HumanoidControl humanoid) |
Checks whether the humanoid has an HipsTarget and adds one if none has been found. | |
static Vector | ToVector (Vector3 vector3) |
static Vector3 | ToVector3 (Vector position) |
static Rotation | ToRotation (Quaternion quaternion) |
static Quaternion | ToQuaternion (Rotation orientation) |
static void | SetRotation (Transform transform, Rotation orientation) |
static void | DrawTarget (Confidence confidence, Transform target, Vector3 direction, float length) |
static void | DrawTargetBone (TargetedBone bone, Vector3 direction) |
static void | DrawTargetBone (TargetTransform target, Vector3 direction) |
static void | DrawAvatarBone (TargetedBone bone, Vector3 direction) |
static void | DrawAvatarBone (BoneTransform bone, Vector3 direction) |
static void | GetDefaultBone (Animator rig, ref Transform boneTransform, Bone boneId, params string[] boneNames) |
static void | GetDefaultBone (Animator rig, ref Transform boneTransform, HumanBodyBones boneID, params string[] boneNames) |
static void | GetDefaultBone (Animator rig, ref Transform boneTransform, params string[] boneNames) |
static void | GetDefaultTargetBone (Animator rig, ref Transform boneTransform, Bone boneID, params string[] boneNames) |
static List< Collider > | SetColliderToTrigger (GameObject obj) |
static List< Collider > | SetColliderToTrigger (Rigidbody rb) |
static void | UnsetColliderToTrigger (List< Collider > colliders) |
static void | UnsetColliderToTrigger (List< Collider > colliders, Collider collider) |
Public Attributes | |
float | hipsBaseHeight |
bool | newSpineIK = false |
TorsoMovements | torsoMovements = new TorsoMovements() |
TorsoAnimator | torsoAnimator = new TorsoAnimator() |
Controls the hips when no tracking is active. | |
ViveTrackerTorso | viveTracker = new ViveTrackerTorso() |
Kinect1Torso | kinect1 = new Kinect1Torso() |
Kinect2Torso | kinect2 = new Kinect2Torso() |
Kinect4Torso | kinect4 = new Kinect4Torso() |
AstraTorso | astra = new AstraTorso() |
OptitrackTorso | optitrack = new OptitrackTorso() |
CustomTorso | custom = new CustomTorso() |
TargetedChestBone | chest = null |
TargetedSpineBone | spine = null |
TargetedHipsBone | hips = null |
float | bendingFactor = 1 |
float | torsoLength |
Quaternion | spine2HipsRotation |
HumanoidControl | humanoid |
Static Public Attributes | |
const float | maxSpineAngle = 20 |
const float | maxChestAngle = 20 |
Protected Member Functions | |
override void | UpdateSensors () |
Quaternion | DetermineSpine2HipsRotation () |
override void | DrawTargetRig (HumanoidControl humanoid) |
override void | DrawAvatarRig (HumanoidControl humanoid) |
virtual void | DrawTensionGizmo (TargetedBone targetedBone) |
Protected Attributes | |
TorsoSensor[] | sensors |
bool | _showRealObjects = true |
Properties | |
bool | simpleSpineIK [get] |
override Passer.Sensor | animator [get] |
override TargetedBone | main [get] |
virtual bool | showRealObjects [get, set] |
show the target meshes | |
|
virtual |
Reimplemented from Passer.Target.
|
protectedvirtual |
Reimplemented from Passer.Target.
|
virtual |
Reimplemented from Passer.Target.
|
static |
Checks whether the humanoid has an HipsTarget and adds one if none has been found.
humanoid | The humanoid to check |
|
protectedvirtual |
Reimplemented from Passer.Humanoid.HumanoidTarget.
|
protectedvirtual |
Reimplemented from Passer.Humanoid.HumanoidTarget.