private Transform ground; //The ground we detect with raycast private void Start() { collisionDetection.Init(); ////Kinematics equations, gravity needs to be calculated based on the specified jump height and time it takes to get there ballPhysics.CalculateGravity(ballBounce.BounceHeight, ballBounce.TimeToApex); //////Next jump velocity is calculated based on the previously calculated gravity ballBounce.Init(ballPhysics.Gravity); }