Raised This Month: $ Target: $400
 0% 

entity_set_size() Help / Model Solidification


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-26-2007 , 15:33   Re: entity_set_size() Help / Model Solidification
Reply With Quote #1

I'm not sure about the exact implementation or what I'm saying is correct, fyi. When I say offset vectors, it takes the entities current origin at w/e time and add those offsets to it to get the effect of a bounding box and do collision checks with the new vectors. You the values, I thought you just meant why doesn't it ever change (like when you move and stuff).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
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 #2



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
Reply



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