Collision Detection - Jeff Thompson
文章推薦指數: 80 %
This book explains the algorithms behind those collisions using basic shapes like circles, rectangles, and lines so you can implement them into your own ... [yourbrowserdoesnotsupportthecanvastag] COLLISIONDETECTION JeffThompson Thecollisionofobjectsunderliesmostgameexperiencesanduser-interfaces.Baseballbatscollidewithballs,zombiesbumpintowalls,andMariolandsonplatformsandstompsturtles.Evensomethingassimpleasclickingabutton(arectangle)withyourmouse(apoint)isacollision. Thisbookexplainsthealgorithmsbehindthosecollisionsusingbasicshapeslikecircles,rectangles,andlinessoyoucanimplementthemintoyourownprojects. UPDATE!Thissitehasbeengettinglotsofvisitswhichisawesome.I'vemadesomechangessoitwilllookbetteronmobiledevices,makenavigationeasier,andtriedtolookovereverythingformistakes.Ifyouhaveanyproblemsorsuggestions,pleasepostanissueontheprojectrepository.Thanks! Readytogetstarted?SkipaheadtotheTableofContents... WHAT'SCOVEREDHERE? Thisbookcoverscollisionsbetweenpoints,circles,rectangles,lines,polygons,andtriangles.Theseexamplesaremeanttobeasreadableandeasilyunderstoodaspossible.Therearedefinitelyfaster,moreefficientwaystodetectthesecollisions,butthisbookisintendedtobefriendlyandteachtheprincipleswithminimalmath. Eachsectionincludeadescriptionofthecollisionalgorithmandaninteractiveexamplebuiltusingprocessing.js.Youcanviewthesourcecodeforalltheexamples(andthisbook!)onGitHub. NOTE!Ifyou'reonamobiledevice,theexamplesmightnotworksuperwellforyou.Theyaredesignedformouseinput,soifyou'regettingfrustratedoryourfingerisintheway,trythesiteonacomputer. WHAT'SNOT? Aswithanybook,there'salotmoreusefulmaterialthancouldbecoveredhere.Thingsthataren'tdiscussedaremostlyleftoutbecausethemathgetstoocomplicated.Three-dimensionalspaceisn'ttouchedon.Ellipses,whichseemliketheyshouldbeprettyeasy,areactuallyverydifficult. Ifthere'saspecificcollisionnotcoveredthatwouldbehelpful,pleasepleasesubmitanissuewitharequestor,betteryet,submitaworkingexamplethatyou'vebuilt! ISSUES? Ifyoufindcodethatdoesn'truncorrectly,analgorithmthatisn'texplainedquiteright,oratypo,pleasereportthematthisproject'sGitHubrepository.Thanksforyourhelp! NAVIGATION OK,let'swritesomecode!Clickthelinkatthebottomthepage,orthearrowsatthetop,tomovetothenextchapter.TheCollisionDetectionlinkatthetopwilltakeyoubacktotheTableofContents. NEXT:TableOfContents
延伸文章資訊
- 12D collision detection - Game development - MDN Web Docs
Algorithms to detect collision in 2D games depend on the type of shapes that can collide (e.g. Re...
- 2Collision Detection - Brown CS
Two collision-detection algorithms that we are going to discuss. I-COLLIDE · Impulse-Based Dynami...
- 3Efficient Algorithms for Two-Phase Collision Detection
This article describes practical collision detection algorithms for robot motion planning. Attent...
- 4Collision detection - Wikipedia
Collision detection is the computational problem of detecting the intersection of two or ... Coll...
- 5Collision Detection: Algorithms and Applications
We present an e cient and accurate algorithm for collision detection between general polygonal mo...