API reference

WristAngleActiveState Class

Extends MonoBehaviour
Implements IActiveState
This ActiveState checks that the wrist rotation relative to the arm (approximated by the direction from the estimated shoulder to the wrist) stays within a valid range.

Protected Fields

_started : bool
Signature
bool _started

Properties

Active : bool
[Get]
True if the angle of the wrist relative to the arm is whithin the valid range.
Signature
bool Active
Hand : IHand
[Get]
Signature
IHand Hand
MaxAngle : float
[Get][Set]
Signature
float MaxAngle
MinAngle : float
[Get][Set]
Signature
float MinAngle

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void
Update ()
Signature
virtual void Update()
Returns
void

Methods

InjectAllWristAngleActiveState ( hand , shoulder )
Signature
void InjectAllWristAngleActiveState(IHand hand, Transform shoulder)
Parameters
hand: IHand
shoulder: Transform
Returns
void
InjectHand ( hand )
Signature
void InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectShoulder ( shoulder )
Signature
void InjectShoulder(Transform shoulder)
Parameters
shoulder: Transform
Returns
void