Updated accessibility
This commit is contained in:
parent
43bd355b29
commit
14ac81f2f2
@ -655,9 +655,9 @@ namespace Passer.Humanoid {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Targets
|
#region Targets
|
||||||
protected void NewTargetComponents() {
|
protected void NewTargetComponents() {
|
||||||
#if pCEREBELLUM
|
#if pCEREBELLUM
|
||||||
if (cerebellum == null)
|
if (cerebellum == null)
|
||||||
@ -718,7 +718,7 @@ namespace Passer.Humanoid {
|
|||||||
rightFootTarget.MatchTargetsToAvatar();
|
rightFootTarget.MatchTargetsToAvatar();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateTargetsAndMovements() {
|
protected void UpdateTargetsAndMovements() {
|
||||||
CopyTargetsToRig();
|
CopyTargetsToRig();
|
||||||
|
|
||||||
UpdateTargets();
|
UpdateTargets();
|
||||||
@ -964,9 +964,9 @@ namespace Passer.Humanoid {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Trackers
|
#region Trackers
|
||||||
|
|
||||||
/// <summary>Use game controller input</summary>
|
/// <summary>Use game controller input</summary>
|
||||||
public bool gameControllerEnabled = true;
|
public bool gameControllerEnabled = true;
|
||||||
@ -1095,7 +1095,7 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private TraditionalDevice traditionalInput;
|
protected TraditionalDevice traditionalInput;
|
||||||
|
|
||||||
protected void InitTrackers() {
|
protected void InitTrackers() {
|
||||||
_trackers = new HumanoidTracker[] {
|
_trackers = new HumanoidTracker[] {
|
||||||
@ -1313,9 +1313,9 @@ namespace Passer.Humanoid {
|
|||||||
tracker.AdjustTracking(translation, rotation);
|
tracker.AdjustTracking(translation, rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Configuration
|
#region Configuration
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Scans the humanoid to retrieve all bones
|
/// Scans the humanoid to retrieve all bones
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -1328,9 +1328,9 @@ namespace Passer.Humanoid {
|
|||||||
leftFootTarget.RetrieveBones();
|
leftFootTarget.RetrieveBones();
|
||||||
rightFootTarget.RetrieveBones();
|
rightFootTarget.RetrieveBones();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Update
|
#region Update
|
||||||
|
|
||||||
protected virtual void Update() {
|
protected virtual void Update() {
|
||||||
Controllers.Clear();
|
Controllers.Clear();
|
||||||
@ -1365,9 +1365,9 @@ namespace Passer.Humanoid {
|
|||||||
Controllers.EndFrame();
|
Controllers.EndFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Stop
|
#region Stop
|
||||||
public void OnApplicationQuit() {
|
public void OnApplicationQuit() {
|
||||||
#if hLEAP
|
#if hLEAP
|
||||||
leap.StopTracker();
|
leap.StopTracker();
|
||||||
@ -1391,11 +1391,11 @@ namespace Passer.Humanoid {
|
|||||||
optitrack.StopTracker();
|
optitrack.StopTracker();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Destroy
|
#region Destroy
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Vector3 up {
|
public Vector3 up {
|
||||||
get {
|
get {
|
||||||
@ -1440,7 +1440,7 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Calibration
|
#region Calibration
|
||||||
|
|
||||||
public void SetStartPosition() {
|
public void SetStartPosition() {
|
||||||
}
|
}
|
||||||
@ -1469,9 +1469,9 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Pose
|
#region Pose
|
||||||
|
|
||||||
protected virtual void UpdatePose() {
|
protected virtual void UpdatePose() {
|
||||||
if (pose != null) {
|
if (pose != null) {
|
||||||
@ -1480,7 +1480,7 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Pose Event
|
#region Pose Event
|
||||||
|
|
||||||
public delegate void OnHumanoidPose(HumanoidPose pose);
|
public delegate void OnHumanoidPose(HumanoidPose pose);
|
||||||
public event OnHumanoidPose onHumanoidPose;
|
public event OnHumanoidPose onHumanoidPose;
|
||||||
@ -1541,11 +1541,11 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Movement
|
#region Movement
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// maximum forward speed in units(meters)/second
|
/// maximum forward speed in units(meters)/second
|
||||||
@ -1590,7 +1590,7 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
protected Vector3 inputMovement = Vector3.zero;
|
protected Vector3 inputMovement = Vector3.zero;
|
||||||
|
|
||||||
#region Input/API
|
#region Input/API
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// maximum forward speed in units(meters)/second
|
/// maximum forward speed in units(meters)/second
|
||||||
@ -1811,9 +1811,9 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Checks
|
#region Checks
|
||||||
|
|
||||||
[HideInInspector]
|
[HideInInspector]
|
||||||
public Vector3 targetVelocity;
|
public Vector3 targetVelocity;
|
||||||
@ -1926,9 +1926,9 @@ namespace Passer.Humanoid {
|
|||||||
return distance * elapsedTime * elapsedTime + start;
|
return distance * elapsedTime * elapsedTime + start;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Collisions
|
#region Collisions
|
||||||
|
|
||||||
public bool triggerEntered;
|
public bool triggerEntered;
|
||||||
public bool collided;
|
public bool collided;
|
||||||
@ -2101,9 +2101,9 @@ namespace Passer.Humanoid {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Ground
|
#region Ground
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ground Transform on which the pawn is standing
|
/// The ground Transform on which the pawn is standing
|
||||||
@ -2264,9 +2264,9 @@ namespace Passer.Humanoid {
|
|||||||
lastGroundAngle = ground.eulerAngles.y;
|
lastGroundAngle = ground.eulerAngles.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Body Pull
|
#region Body Pull
|
||||||
|
|
||||||
protected virtual void CheckBodyPull() {
|
protected virtual void CheckBodyPull() {
|
||||||
if (!bodyPull)
|
if (!bodyPull)
|
||||||
@ -2305,12 +2305,12 @@ namespace Passer.Humanoid {
|
|||||||
transform.Translate(translation, Space.World);
|
transform.Translate(translation, Space.World);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
[HideInInspector]
|
[HideInInspector]
|
||||||
private float lastTime;
|
private float lastTime;
|
||||||
|
|
||||||
private void CalculateVelocityAcceleration() {
|
protected virtual void CalculateVelocityAcceleration() {
|
||||||
if (lastTime > 0) {
|
if (lastTime > 0) {
|
||||||
float deltaTime = Time.time - lastTime;
|
float deltaTime = Time.time - lastTime;
|
||||||
|
|
||||||
@ -2344,7 +2344,7 @@ namespace Passer.Humanoid {
|
|||||||
lastHeadDirection = headTarget.neck.target.transform.eulerAngles.y;
|
lastHeadDirection = headTarget.neck.target.transform.eulerAngles.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Animation
|
#region Animation
|
||||||
|
|
||||||
private void PostAnimationCorrection() {
|
private void PostAnimationCorrection() {
|
||||||
|
|
||||||
@ -2395,7 +2395,7 @@ namespace Passer.Humanoid {
|
|||||||
targetsRig.SetTrigger(parameterName);
|
targetsRig.SetTrigger(parameterName);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
[HideInInspector]
|
[HideInInspector]
|
||||||
private float lastLocalHipY;
|
private float lastLocalHipY;
|
||||||
@ -2416,7 +2416,7 @@ namespace Passer.Humanoid {
|
|||||||
lastLocalHipY = localHipY;
|
lastLocalHipY = localHipY;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Movement
|
#endregion Movement
|
||||||
|
|
||||||
/// <summary>Gets the Real World GameObject for this Humanoid</summary>
|
/// <summary>Gets the Real World GameObject for this Humanoid</summary>
|
||||||
/// <param name="transform">The root transform of the humanoid</param>
|
/// <param name="transform">The root transform of the humanoid</param>
|
||||||
@ -2484,7 +2484,7 @@ namespace Passer.Humanoid {
|
|||||||
// return footBase;
|
// return footBase;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
#region Networking
|
#region Networking
|
||||||
|
|
||||||
/// <summary>Is true when this is a remote pawn</summary>
|
/// <summary>Is true when this is a remote pawn</summary>
|
||||||
/// Remote pawns are not controlled locally, but are controlled from another computer.
|
/// Remote pawns are not controlled locally, but are controlled from another computer.
|
||||||
@ -2497,9 +2497,9 @@ namespace Passer.Humanoid {
|
|||||||
/// <summary>The local Id of this humanoid</summary>
|
/// <summary>The local Id of this humanoid</summary>
|
||||||
public int id = -1;
|
public int id = -1;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Humanoid store
|
#region Humanoid store
|
||||||
|
|
||||||
private static HumanoidControl[] _allHumanoids = new HumanoidControl[0];
|
private static HumanoidControl[] _allHumanoids = new HumanoidControl[0];
|
||||||
|
|
||||||
@ -2606,7 +2606,7 @@ namespace Passer.Humanoid {
|
|||||||
screenPosition.y > 0 && screenPosition.y < camera.pixelHeight);
|
screenPosition.y > 0 && screenPosition.y < camera.pixelHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user