# Sandbox.BoxCollider

Defines a box collider.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Collider](/api/Sandbox.Collider)
- Modifiers: sealed

## Constructors

- [`BoxCollider`](/api/Sandbox.BoxCollider/.ctor)

## Properties

- [`Center`](/api/Sandbox.BoxCollider/Center): The center of the box relative to this GameObject
- [`Scale`](/api/Sandbox.BoxCollider/Scale): The size of the box, from corner to corner.

## Methods

- [`SetToGameObjectBounds`](/api/Sandbox.BoxCollider/SetToGameObjectBounds): Sets the box to the bounds of this GameObject
