Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BoundingSphere Constructor

public BoundingSphere(Vector3 pos, float rad);
public BoundingSphere(Vector4 packedSphere);

Parameters

pos The center of the sphere.
rad The radius of the sphere.
packedSphere A four-component vector containing the position (packed into the XYZ components) and radius (packed into the W component).

Description

Initializes a BoundingSphere.