Documentation

Unity Engine

Unity Engine

SphereCollider

A sphere-shaped primitive collider.
Read time 6 minutesLast updated a month ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
  • Inherits from: Collider
[RequireComponent(typeof(Transform))]public class SphereCollider : Collider

Remarks

Properties

Property

Description

centerThe center of the sphere in the object's local space.
radiusThe radius of the sphere measured in the object's local space.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.