Ejemplo n.º 1
0
 /// <summary>
 /// Note: This doesn't take rounded edges into account.
 /// </summary>
 public bool CircleCastApprox(ref VoltRayCast ray, float radius)
 {
     return(VoltAABB.RayCast(
                ref ray,
                this.top + radius,
                this.bottom - radius,
                this.left - radius,
                this.right + radius));
 }
Ejemplo n.º 2
0
 public bool RayCast(ref VoltRayCast ray)
 {
     return(VoltAABB.RayCast(
                ref ray,
                this.top,
                this.bottom,
                this.left,
                this.right));
 }