pev->origin will be the center of the brush based entity if it has an origin
brush. That's the whole point of the origin brush.

Ikkyo
----- Original Message -----
From: "Sniper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 27, 2003 10:04 AM
Subject: [hlcoders] Finding the true center point of an entity


> Is it somehow possible to determine the exact center point of a brush
based
> entity that has a brush based origin? The usual call to Center() is
> worthless.
>
> Center() returns pev->absmin + pev->absmax * 0.5.
>
> Absmin and absmax however are generated by using the model's origin...
which
> would automatically mean the model's brush based origin. So we're back to
> the same problem.
>
> Argh.
>
> -Sniper


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to