Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "setsize"

From Quake Wiki

(One intermediate revision by one other user not shown)
Line 1: Line 1:
Syntax:<br/>
+
====Syntax:====
 
<code>void setsize(entity e, vector mins, vector maxs)</code>
 
<code>void setsize(entity e, vector mins, vector maxs)</code>
  
Sets the size of the entity <code>e</code>'s bounding box. This is calculated from the origin (<code>'0 0 0'</code>).  <code>mins</code> must be smaller than <code>maxs</code>.
+
Sets the size of the entity's bounding box, relative to the entity origin. The size box is rotated by the current angle of the entity.
 +
====Parameters:====
 +
:<code>e</code> - The entity who's model is being set
 +
:<code>mins</code> - The coordinates of the minimum corner of the bounding box (ex: [[VEC_HULL2_MIN]])
 +
:<code>maxs</code> - The coordinates of the maximum corner of the bounding box (must be larger than mins) (ex: [[VEC_HULL2_MIN]])
 +
====Returns:====
 +
:void
 +
 
 
[[Category:QuakeC Function]]
 
[[Category:QuakeC Function]]

Revision as of 17:50, 2 May 2015

Syntax:

void setsize(entity e, vector mins, vector maxs)

Sets the size of the entity's bounding box, relative to the entity origin. The size box is rotated by the current angle of the entity.

Parameters:

e - The entity who's model is being set
mins - The coordinates of the minimum corner of the bounding box (ex: VEC_HULL2_MIN)
maxs - The coordinates of the maximum corner of the bounding box (must be larger than mins) (ex: VEC_HULL2_MIN)

Returns:

void