[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Collision Detection

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 5
Thread images: 2

File: wojakb.jpg (47KB, 645x968px) Image search: [Google]
wojakb.jpg
47KB, 645x968px
Due to the lack of a reasonable low-level collision detection library for JS/SVG I've decided to write my own one. Two questions:

1) will this plan work:
INIT
>get outline of shapes that could be collided
>convert to polygons
>split these into convex subpolygons (ex. through triangulation

DETECTION
>check for bounding box overlap for broad phase of detection ex with spacial hashmap
>after detecting the above use the seperating axis theorem to detect collision on each of the convex subpolygons

2) will it be efficient enough to be practical?
>>
>>60726341
>kys yourself
>kill yourself yourself
nice one you trog
back to /b/ now
>>
>have polygons A and B
>check all vertices of A if they are inside/touch B
>check all vertices of B if they are inside/touch A
>end

Also don't try to code anything since you are too retarded to google.
>guy acts like he's a programmer
>is too retarded to use google for his problem
every time
>>
>>60726454
>>have polygons A and B
>>check all vertices of A if they are inside/touch B
>>check all vertices of B if they are inside/touch A
>>end
right, that well known algorithm for testing whether a point is inside a polygon. don't get why you're acting like you know shit about the problem.
>>
File: falsenegative.png (3KB, 483x420px) Image search: [Google]
falsenegative.png
3KB, 483x420px
>>60726454
Thread posts: 5
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.