Humanoid Control for Unity v4
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Passer.Humanoid.HipsTarget Class Reference

Description

Humanoid Control options for torso related things

Sensors

See the list of supported devices to get information on the hips target of each device.

Configuration

Bones

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.

Limits

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.

Settings

Body Rotation

Inheritance diagram for Passer.Humanoid.HipsTarget:
Passer.Humanoid.HumanoidTarget Passer.Target

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 ()
 Sets the tracking confidence before all tracking information is updated More...
 
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 More...
 
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

bool _showRealObjects = true
 

Properties

override Passer.Sensor animator [get]
 
override TargetedBone main [get]
 
virtual bool showRealObjects [getset]
 show the target meshes
 

Member Function Documentation

◆ InitSensors()

override void Passer.Humanoid.HipsTarget.InitSensors ( )
virtual

Implements Passer.Target.

◆ StartSensors()

override void Passer.Humanoid.HipsTarget.StartSensors ( )
virtual

Reimplemented from Passer.Target.

◆ UpdateSensors()

override void Passer.Humanoid.HipsTarget.UpdateSensors ( )
protectedvirtual

Reimplemented from Passer.Target.

◆ GetDefaultTarget()

override Transform Passer.Humanoid.HipsTarget.GetDefaultTarget ( HumanoidControl  humanoid)
virtual

◆ InitAvatar()

override void Passer.Humanoid.HipsTarget.InitAvatar ( )
virtual

◆ InitComponent()

override void Passer.Humanoid.HipsTarget.InitComponent ( )
virtual

Reimplemented from Passer.Target.

◆ StartTarget()

override void Passer.Humanoid.HipsTarget.StartTarget ( )
virtual

Implements Passer.Target.

◆ DetermineTarget()

static void Passer.Humanoid.HipsTarget.DetermineTarget ( HumanoidControl  humanoid)
static

Checks whether the humanoid has an HipsTarget and adds one if none has been found

Parameters
humanoidThe humanoid to check

◆ MatchTargetsToAvatar()

override void Passer.Humanoid.HipsTarget.MatchTargetsToAvatar ( )
virtual

◆ InitializeTrackingConfidence()

override void Passer.Humanoid.HipsTarget.InitializeTrackingConfidence ( )
virtual

Sets the tracking confidence before all tracking information is updated

Implements Passer.Target.

◆ UpdateTarget()

override void Passer.Humanoid.HipsTarget.UpdateTarget ( )
virtual

Implements Passer.Target.

◆ UpdateMovements()

override void Passer.Humanoid.HipsTarget.UpdateMovements ( HumanoidControl  humanoid)
virtual

◆ CopyTargetToRig()

override void Passer.Humanoid.HipsTarget.CopyTargetToRig ( )
virtual

◆ CopyRigToTarget()

override void Passer.Humanoid.HipsTarget.CopyRigToTarget ( )
virtual

◆ DrawTargetRig()

override void Passer.Humanoid.HipsTarget.DrawTargetRig ( HumanoidControl  humanoid)
protectedvirtual

Reimplemented from Passer.Humanoid.HumanoidTarget.

◆ DrawAvatarRig()

override void Passer.Humanoid.HipsTarget.DrawAvatarRig ( HumanoidControl  humanoid)
protectedvirtual

Reimplemented from Passer.Humanoid.HumanoidTarget.


The documentation for this class was generated from the following files: