Humanoid Control for Unity  v3
Passer.Humanoid.FootTarget Class Reference

Humanoid Control options for leg related stuff More...

Inherits Passer.Humanoid.HumanoidTarget.

Public Member Functions

override void InitSensors ()
 
override void StartSensors ()
 
TargetedBone GetTargetBone (LegBones boneID)
 
override Transform GetDefaultTarget (HumanoidControl humanoid)
 
void RetrieveBones ()
 
void ShowControllers (bool shown)
 
override void InitAvatar ()
 
override void NewComponent (HumanoidControl _humanoid)
 
override void InitComponent ()
 
override void StartTarget ()
 
bool IsInTPose ()
 
override void MatchTargetsToAvatar ()
 
override void UpdateTarget ()
 
override void UpdateMovements (HumanoidControl humanoid)
 
override void CopyTargetToRig ()
 
override void CopyRigToTarget ()
 
void UpdateSensorsFromTarget ()
 
void CheckGrounded ()
 
void OnDrawGizmos ()
 
void OnDrawGizmosSelected ()
 
virtual void DrawTensions ()
 
virtual void StopSensors ()
 

Static Public Member Functions

static FootTarget CreateTarget (FootTarget oldTarget)
 
static FootTarget SetTarget (HumanoidControl humanoid, Transform targetTransform, bool isLeft)
 
static bool IsInitialized (HumanoidControl humanoid)
 
static void DetermineTarget (HumanoidControl humanoid, bool isLeft)
 Checks whether the humanoid has a FootTarget 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

bool isLeft
 
Side side
 
FootTarget otherFoot
 
LegMovements legMovements = new LegMovements()
 
bool rotationSpeedLimitation = false
 
LegAnimator legAnimator = new LegAnimator()
 
ViveTrackerLeg viveTracker = new ViveTrackerLeg()
 
PerceptionNeuronLeg neuron = new PerceptionNeuronLeg()
 
Kinect1Leg kinect1 = new Kinect1Leg()
 
Kinect2Foot kinect2 = new Kinect2Foot()
 
Kinect4Leg kinect4 = new Kinect4Leg()
 
AstraLeg astra = new AstraLeg()
 
OptitrackLeg optitrack = new OptitrackLeg()
 
AntilatencyLeg antilatency = new AntilatencyLeg()
 
TargetedUpperLegBone upperLeg
 
TargetedLowerLegBone lowerLeg
 
TargetedFootBone foot
 
TargetedToesBone toes
 
bool jointLimitations = true
 
bool slidePrevention = false
 
bool physics = true
 
GameObjectEventHandlers groundEvent
 
Transform ground
 
Vector3 groundNormal = Vector3.up
 
Vector3 groundTranslation = Vector3.zero
 
float groundDistance = 0
 
float soleThicknessFoot
 
float soleThicknessToes
 
HumanoidControl humanoid
 

Static Public Attributes

const float maxUpperLegAngle = 120
 
const float maxLowerLegAngle = 130
 
const float maxFootAngle = 50
 
const float maxToesAngle = 30
 
static readonly Vector3 minLeftUpperLegAngles = new Vector3(-130, -45, -50)
 
static readonly Vector3 maxLeftUpperLegAngles = new Vector3(30, 40, 30)
 
static readonly Vector3 minRightUpperLegAngles = new Vector3(-130, -40, -30)
 
static readonly Vector3 maxRightUpperLegAngles = new Vector3(30, 45, 50)
 
static readonly Vector3 minLeftLowerLegAngles = new Vector3(-15, float.NaN, float.NaN)
 
static readonly Vector3 maxLeftLowerLegAngles = new Vector3(130, float.NaN, float.NaN)
 
static readonly Vector3 minRightLowerLegAngles = new Vector3(-15, float.NaN, float.NaN)
 
static readonly Vector3 maxRightLowerLegAngles = new Vector3(130, float.NaN, float.NaN)
 
static readonly Vector3 minLeftFootAngles = new Vector3(-45, 0, -30)
 
static readonly Vector3 maxLeftFootAngles = new Vector3(70, 0, 20)
 
static readonly Vector3 minRightFootAngles = new Vector3(-45, 0, -20)
 
static readonly Vector3 maxRightFootAngles = new Vector3(50, 0, 30)
 
static readonly Vector3 minLeftToesAngles = new Vector3(-70, float.NaN, float.NaN)
 
static readonly Vector3 maxLeftToesAngles = new Vector3(45, float.NaN, float.NaN)
 
static readonly Vector3 minRightToesAngles = new Vector3(-70, float.NaN, float.NaN)
 
static readonly Vector3 maxRightToesAngles = new Vector3(45, float.NaN, float.NaN)
 

Protected Member Functions

override void UpdateSensors ()
 
virtual void UpdateEvents ()
 
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 [get, set]
 show the target meshes More...
 

Detailed Description

Humanoid Control options for leg related stuff

More information on the Humanoid Control Foot Target Component click here

Member Function Documentation

◆ DetermineTarget()

static void Passer.Humanoid.FootTarget.DetermineTarget ( HumanoidControl  humanoid,
bool  isLeft 
)
static

Checks whether the humanoid has a FootTarget and adds one if none has been found

Parameters
humanoidThe humanoid to check
isLeftIs this the left foot?

Member Data Documentation

◆ groundEvent

GameObjectEventHandlers Passer.Humanoid.FootTarget.groundEvent
Initial value:
= new GameObjectEventHandlers() {
id = 1,
label = "Ground Event",
tooltip =
"Call function based on ground standing\n" +
"Parameter: the ground object",
eventTypeLabels = new string[] {
"Never",
"On Grounded",
"On not Grounded",
"While Grounded",
"While not Grounded",
"When Ground Changes",
"Always"
},
fromEventLabel = "ground.gameObject"
}

Property Documentation

◆ showRealObjects

virtual bool Passer.Target.showRealObjects
getsetinherited

show the target meshes


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