public override bool Raycast(Ray ray, out float t) { return(TorusMath.Raycast(ray, out t, _center, _coreRadius, _tubeRadius, _rotation, _epsilon)); }
public override AABB GetAABB() { float sphereRadius = TorusMath.CalcSphereRadius(_coreRadius, _tubeRadius); return(new AABB(_center, Vector3Ex.FromValue(sphereRadius * 2.0f))); }
public override AABB GetAABB() { return(TorusMath.CalcCylAABB(_center, _coreRadius, _hrzRadius, _vertRadius, _rotation)); }
public List <Vector3> GetHrzExtents() { return(TorusMath.Calc3DHrzExtentPoints(_center, _coreRadius, _tubeRadius, _rotation)); }
public override bool Raycast(Ray ray, out float t) { return(TorusMath.RaycastCylindrical(ray, out t, _center, _coreRadius, _hrzRadius, _vertRadius, _rotation, _epsilon)); }