Raised This Month: $ Target: $400
 0% 

entity_set_size() Help / Model Solidification


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-26-2007 , 19:46   Re: entity_set_size() Help / Model Solidification
Reply With Quote #5



Here's a bounding box, in two dimensions. The blue dot is the entity's origin. The red dot is the entity's "max size." The green dot is the entity's "minimum size."

Since horizontally there are 24 pixels between the origin and the max size position, and vertically there are 48 pixels between the origin and the max size position, the max size (second parameter of EngFunc_SetSize) would be {24.0,48.0}.

Similarly, since horizontally there are 24 pixels between the origin and the min size position, and vertically there are 48 pixels between the origin and the min size position, but in the opposite direction, the min size (first parameter of EngFunc_SetSize) would be {-24.0,-48.0}.

Essentially, the mins and maxs are the distances from the origin of the entity to the two extreme corners of the bounding box of the entity. Note that in Half-Life, these are in 3D.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode