Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BoundingSphere

Initializes a BoundingSphere.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

BoundingSphere(Vector3, float)

Initializes a BoundingSphere.
public BoundingSphere(Vector3 pos, float rad)

Parameters

The center of the sphere.

The radius of the sphere.

BoundingSphere(Vector4)

Initializes a BoundingSphere.
public BoundingSphere(Vector4 packedSphere)

Parameters

packedSphere

A four-component vector containing the position (packed into the XYZ components) and radius (packed into the W component).