Beispiel #1
0
    /// <summary>
    /// Get Bones from SetSkeletons class
    /// </summary>
    private void RetrieveBones()
    {
        setSkeletons = this.GetComponent <SetSkeletons>();

        physicalUpperBones = setSkeletons.physicalUpperBones;
        physicalLowerBones = setSkeletons.physicalLowerBones;

        kinematicUpperBones = setSkeletons.kinematicUpperBones;
        kinematicLowerBones = setSkeletons.kinematicLowerBones;

        interpolatedUpperBones = setSkeletons.interpolatedUpperBones;
        interpolatedLowerBones = setSkeletons.interpolatedLowerBones;
    }
Beispiel #2
0
    private void Start()
    {
        _setSkeletons      = FindObjectOfType <SetSkeletons>();
        _hipsPIDController = GetComponent <HipsPIDController>();

        // Get upper physical bones
        physicalUpperBones = _setSkeletons.physicalUpperBones;
        physicalLowerBones = _setSkeletons.physicalLowerBones;

        // Get upper interpolated bones
        interpolatedUpperBones = _setSkeletons.interpolatedUpperBones;
        interpolatedLowerBones = _setSkeletons.interpolatedLowerBones;
    }
Beispiel #3
0
    /// <summary>
    /// Get Bones from SetSkeletons class
    /// </summary>
    private void RetrieveBones()
    {
        setSkeletons = this.GetComponent <SetSkeletons>();

        physicalUpperBones = setSkeletons.physicalUpperBones;
        //physicalLowerBones = setSkeletons.physicalLowerBones;

        kinematicUpperBones = setSkeletons.kinematicUpperBones;
        //kinematicLowerBones = setSkeletons.kinematicLowerBones;

        variableUpperBones = setSkeletons.interpolatedUpperBones;
        //variableLowerBones = setSkeletons.variableLowerBones;

        // EXPERIMENTAL
        //variablePhysicalUpperBones = setSkeletons.variablePhysicalUpperBones;
    }