文档

Unity Engine

Unity Engine

BoundingSphere

Initializes a BoundingSphere.
阅读时间1 分钟最后更新于 1 个月前

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).