Ejemplo n.º 1
0
    private void Start()
    {
        bCurveFootTrajectory = curveTrajectory.GetComponent <BezierCurveFootTrajectory>();
        controlPoints[0]     = curveTrajectory.transform.GetChild(0).gameObject;
        controlPoints[1]     = curveTrajectory.transform.GetChild(1).gameObject;
        controlPoints[2]     = curveTrajectory.transform.GetChild(2).gameObject;
        controlPoints[3]     = curveTrajectory.transform.GetChild(3).gameObject;

        isGroundedRayLength = GetComponent <SphereCollider>().radius;

        footStates     = GetComponent <FootStates>();
        footPlacement  = spine.GetComponent <Placement>();
        bCurveFollower = target.GetComponent <BezierCurveFollower>();

        footStates.footState = FootStates.FootState.onStart;
    }
Ejemplo n.º 2
0
    private void Start()
    {
        legLocomotionScript = spine.GetComponent <LegLocomotionPlacement3D>();

        bCurveFootTrajectory = curveTrajectory.GetComponent <BezierTrajectoryBubble3D>();
        controlPoints[0]     = curveTrajectory.transform.GetChild(0).gameObject;
        controlPoints[1]     = curveTrajectory.transform.GetChild(1).gameObject;
        controlPoints[2]     = curveTrajectory.transform.GetChild(2).gameObject;
        controlPoints[3]     = curveTrajectory.transform.GetChild(3).gameObject;

        isGroundedRayLength = 0.4f;

        footStates     = GetComponent <FootStates>();
        footPlacement  = spine.GetComponent <Placement>();
        bCurveFollower = target.GetComponent <BezierCurveFollower>();

        footStates.footState = FootStates.FootState.onStart;
    }