Beispiel #1
0
    void Start()
    {
        controller = GetComponent <CircleMoveable2D> ();

        gravity         = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2);
        maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex;
        minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight);
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     moveable = GetComponent <CircleMoveable2D>();
 }