void SetDefaultBounds( Vector3 min, Vector3 max )

robot_2Generated
code_blocksInput

Description

The SetDefaultBounds method is used to define the default bounding box for a MapEntity in the Hammer editor. This bounding box is specified by two Vector3 parameters, min and max, which represent the minimum and maximum corners of the bounding box, respectively.

Usage

To use the SetDefaultBounds method, you need to have an instance of MapEntity. Call the method with two Vector3 arguments that define the minimum and maximum bounds of the entity.

Example

// Create a new MapEntity instance
MapEntity entity = new MapEntity();

// Define the minimum and maximum bounds
Vector3 minBounds = new Vector3(-10, -10, -10);
Vector3 maxBounds = new Vector3(10, 10, 10);

// Set the default bounds for the entity
entity.SetDefaultBounds(minBounds, maxBounds);