Makes the physics object of the entity a AABB.
This function will automatically destroy any previous physics objects and do the following:
- Entity:SetSolid( SOLID_BBOX )
- Entity:SetMoveType( MOVETYPE_VPHYSICS )
- Entity:SetCollisionBounds( mins, maxs )
Clientside physics objects are broken and do not move properly in some cases. Physics objects should only created on the server or you will experience incorrect physgun beam position, prediction issues, and other unexpected behavior.
1 Vector mins
The minimum position of the box. This is automatically ordered with the maxs.
2 Vector maxs
The maximum position of the box. This is automatically ordered with the mins.