public override Vector3 intersects(CollisionVolume other) { if(other.GetType() == typeof(CollisionCylinder)) { return intersects((CollisionCylinder)other); } else { return intersects((CollisionBox)other); } }
public void addBoundingVolume(float height, float radius, Vector3 offsetPosition) { this.BoundingVolume = new CollisionCylinder(this, height, radius, offsetPosition); }
public abstract Vector3 intersects(CollisionVolume other);