News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu

what purpose do hitboxes serve? why not just test for contact between the visible polygons?

Farted by Slurpee, June 14, 2011, 02:48:34 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Slurpee


Flounderpa

Quote from: Slurpee;1827073just curious.
sometimes games just want to be dicks (also, you could do some sort of variant damage depending on the hitspot but IDK)
ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬à®Å"Û©ÛžÛ©à®Å"ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬
SHUTãâ,¬â,¬Ã¯Â¼ÂµÃ¯Â¼Â°Ã£â,¬â,¬Ã¯Â¼Â¡Ã¯Â¼Â®Ã¯Â¼Â¤Ã£â,¬â,¬Ã¯Â¼Â¥Ã¯Â¼Â®Ã¯Â¼ÂªÃ¯Â¼Â¯Ã¯Â¼Â¹Ã£â,¬â,¬Ã¯Â¼Â´Ã¯Â¼Â¨Ã¯Â¼Â¥Ã£â,¬â,¬Ã¯Â¼Â­Ã¯Â¼ÂµÃ¯Â¼Â³Ã¯Â¼Â©Ã¯Â¼Â£Ã¯Â¼Â
ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬à®Å"Û©ÛžÛ©à®Å"ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬

SoBe Clock

Quote from: clammo;1827082serves to not freeze your computer doing 10 billion point checks per millisecond

Basically this.

Slurpee

Quote from: clammo;1827082serves to not freeze your computer doing 10 billion point checks per millisecond
I was typing a response vis a vis the technical reasons for this but it clicked in my head

for some reason it hadn't occurred to me that the hit tests have to run literally all the time and not just when two objects actually meet

thx clam!!!!!1

Slurpee

Quote from: RibsClock;1827117I'm still waiting for a decent FPS where if folks get shot in the leg they can't walk right, or if they get shot in the hand they can't hold a weapon with that hand.
perfect dark for the n64

Flounderpa

Quote from: RibsClock;1827117I'm still waiting for a decent FPS where if folks get shot in the leg they can't walk right, or if they get shot in the hand they can't hold a weapon with that hand.
ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬à®Å"Û©ÛžÛ©à®Å"ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬
SHUTãâ,¬â,¬Ã¯Â¼ÂµÃ¯Â¼Â°Ã£â,¬â,¬Ã¯Â¼Â¡Ã¯Â¼Â®Ã¯Â¼Â¤Ã£â,¬â,¬Ã¯Â¼Â¥Ã¯Â¼Â®Ã¯Â¼ÂªÃ¯Â¼Â¯Ã¯Â¼Â¹Ã£â,¬â,¬Ã¯Â¼Â´Ã¯Â¼Â¨Ã¯Â¼Â¥Ã£â,¬â,¬Ã¯Â¼Â­Ã¯Â¼ÂµÃ¯Â¼Â³Ã¯Â¼Â©Ã¯Â¼Â£Ã¯Â¼Â
ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬à®Å"Û©ÛžÛ©à®Å"ââ€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"‰â€"¬

Slurpee

Quote from: RibsClock;1827144Never played it, is it any good?

I never owned an N64 but I do remember playing Goldeneye at friends' houses and it being kickass.
it's about as good as you could expect an fps made on the n64 in 2000 to possibly be,
which sounds like a backhanded compliment, but as far as I can tell it holds up pretty well.

AmberArachnidClock

Quote from: RibsClock;1827117I'm still waiting for a decent FPS where if folks get shot in the leg they can't walk right, or if they get shot in the hand they can't hold a weapon with that hand.

fallout 3 kind of

Loki Clock

Mainly, they're too lazy to build a more advanced algorithm than Axis-Aligned Bounding Boxes.

The complaint about "a million point checks" is faulty, because you can test everything for a bounding box collision, and then only use an object's proper collision function if its bounding box registers. You can also also use search trees to limit the number of checks. Furthermore, you would not use a "point check" of any sort - no one has used per-pixel hit checks in a real game since the 16-bit era, and trying to test a collision in terms of vertex positions is impossible in many situations.

Any collision between convex polygons can be tested for with the Separating Axis Theorem, which is also a likely choice for obtaining collision with tilted boxes. It's cheap enough that, except for many-sided polygons, doing an AABB check before the SAT check wastes more time than it saves. However, it relies on geometric vector operations like the dot product, not arithmetic as in AABB. When you don't understand what you're programming, it has a way of mysteriously breaking, even when you've copied and pasted the code off a website.