Proper way to draw 2d boxes?

Posts 1–5 of 5 · Page 1 of 1
Proper way to draw 2d boxes?
When drawing 2d boxes i used to use some number divided by distance to get the box height and width. This is obviously a shit method.
Then i started using w2s head position - w2s feet pos. This works better but is far from perfect. So what is the best way to do this? Thanks.
Do not use head pos, it's looking bad. Try this:
Code:
if (pEntity.GetFlags() & (1 << 1))
			{
				Head = Orgin + Vector3(0, 0, 52.f);
			}
			else
			{
				Head = Orgin + Vector3(0, 0, 72.f);
			}
Quote Originally Posted by armez47 View Post
Do not use head pos, it's looking bad. Try this:
Code:
if (pEntity.GetFlags() & (1 << 1))
			{
				Head = Orgin + Vector3(0, 0, 52.f);
			}
			else
			{
				Head = Orgin + Vector3(0, 0, 72.f);
			}
So the box is only ever 2 different sizes? i don't understand this code i'm sorry lol.
Quote Originally Posted by HexMurder View Post


So the box is only ever 2 different sizes? i don't understand this code i'm sorry lol.
"Head" Position of upper line will be over head and it'll look good, not in center of the head. There are 2 values, if model is ducking or not.

Orgin is a feet pos ofc.
Any other methods? Anyone?
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us