// Token: 0x060013EC RID: 5100 RVA: 0x00061A4C File Offset: 0x0005FC4C
 private void StepAir(Vector3 movement)
 {
     RoachController.SimulatedRoach.RaycastResult raycastResult = RoachController.SimulatedRoach.SimpleRaycast(new Ray(this.transform.position, movement), movement.magnitude);
     Debug.DrawLine(this.transform.position, raycastResult.point, Color.magenta, 10f, false);
     if (raycastResult.didHit)
     {
         this.groundNormal = raycastResult.normal;
         this.velocity     = Vector3.zero;
     }
     this.transform.position = raycastResult.point;
 }
            // Token: 0x060013ED RID: 5101 RVA: 0x00061AC8 File Offset: 0x0005FCC8
            private void StepGround(float distance)
            {
                this.groundNormal = Vector3.zero;
                Vector3 up       = this.transform.up;
                Vector3 forward  = this.transform.forward;
                float   stepSize = this.roachParams.stepSize;
                Vector3 vector   = up * stepSize;
                Vector3 vector2  = this.transform.position;

                vector2 += vector;
                Debug.DrawLine(this.transform.position, vector2, Color.red, 10f, false);
                RoachController.SimulatedRoach.RaycastResult raycastResult = RoachController.SimulatedRoach.SimpleRaycast(new Ray(vector2, forward), distance);
                Debug.DrawLine(vector2, raycastResult.point, Color.green, 10f, false);
                vector2 = raycastResult.point;
                if (raycastResult.didHit)
                {
                    if (Vector3.Dot(raycastResult.normal, forward) < -0.5f)
                    {
                        this.OnBump();
                    }
                    this.groundNormal = raycastResult.normal;
                }
                else
                {
                    RoachController.SimulatedRoach.RaycastResult raycastResult2 = RoachController.SimulatedRoach.SimpleRaycast(new Ray(vector2, -vector), stepSize * 2f);
                    if (raycastResult2.didHit)
                    {
                        Debug.DrawLine(vector2, raycastResult2.point, Color.blue, 10f, false);
                        vector2           = raycastResult2.point;
                        this.groundNormal = raycastResult2.normal;
                    }
                    else
                    {
                        Debug.DrawLine(vector2, vector2 - vector, Color.white, 10f);
                        vector2 -= vector;
                    }
                }
                if (this.groundNormal == Vector3.zero)
                {
                    this.currentSpeed = 0f;
                }
                this.transform.position = vector2;
            }