Garry's Mod Wiki

Garry's Mod Wiki

  Vector, Vector Entity:GetCollisionBounds()

Description

Returns an entity's collision bounding box.

In most cases, this will return the same bounding box as Entity:GetModelBounds unless the entity does not have a physics mesh or it has a PhysObj different from the default.

Collision bounds can be previewed in singleplayer via ent_bbox console command, while looking at a desired entity and with developer 1. (Will appear as an orange wireframe box)

Returns

1 Vector
The minimum vector of the collision bounds, basically Entity:OBBMins.
2 Vector
The maximum vector of the collision bounds, basically Entity:OBBMaxs.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...