UnityEngine.BoundingSphere.BoundingSphere C# (CSharp) Method

BoundingSphere() public method

Initializes a BoundingSphere.

public BoundingSphere ( Vector4 packedSphere ) : System
packedSphere Vector4 A four-component vector containing the position (packed into the XYZ components) and radius (packed into the W component).
return System
        public BoundingSphere(Vector4 packedSphere)
        {
            this.position = new Vector3(packedSphere.x, packedSphere.y, packedSphere.z);
            this.radius = packedSphere.w;
        }
    }

Same methods

BoundingSphere::BoundingSphere ( Vector3 pos, float rad ) : System
BoundingSphere