BoxColliderclass

Defines a box collider.

object→Collider→BoxCollider
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.BoxCollider : Sandbox.Collider

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

public void SetToGameObjectBounds()PUBLIC

Sets the box to the bounds of this GameObject

Returns:void—

Properties2

Showing 2 properties

public Vector3 Sandbox.BoxCollider.Center { get; set; }PUBLICGETSET

The center of the box relative to this GameObject

Returns:Vector3—

public Vector3 Sandbox.BoxCollider.Scale { get; set; }PUBLICGETSET

The size of the box, from corner to corner.

Returns:Vector3—

On this page