/// <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)); }
public bool RayCast(ref VoltRayCast ray) { return(VoltAABB.RayCast( ref ray, this.top, this.bottom, this.left, this.right)); }