Game Physics Cookbook
Discoverover100easy-to-followrecipestohelpyouimplementefficientgamephysicsandcollisiondetectioninyourgamesAboutThisBook?Getacomprehensivecoverageoftechniquestocreatehighperformancecollisiondetectioningames?Learnthecoremathematicsconceptsandphysicsinvolvedindepictingcollisiondetectionforyourgames?Getahands-onexperienceofbuildingarigidbodyphysicsengineWhoThisBookIsForThisbookisforbeginnertointermediategamedevelopers.Youdon’tneedtohaveaformaleducationingames—youcanbeahobbyistorindiedeveloperwhostartedmakinggameswithUnity3D.WhatYouWillLearn?Implementfundamentalmathssoyoucandevelopsolidgamephysics?Usematricestoencodelineartransformations?Knowhowtocheckgeometricprimitivesforcollisions?BuildaPhysicsenginethatcancreaterealisticrigidbodybehavior?Understandadvancedtechniques,includingtheSeparatingAxisTheorem?Createphysicallyaccuratecollisionreactions?Explorespatialpartitioningasanaccelerationstructureforcollisions?ResolverigidbodycollisionsbetweenprimitiveshapesInDetailPhysicsisreallyimportantforgameprogrammerswhowanttoaddrealismandfunctionalitytotheirgames.Collisiondetectioninparticularisaproblemthataffectsallgamedevelopers,regardlessoftheplatform,engine,ortoolkittheyuse.Thisbookwillteachyoutheconceptsandformulasbehindcollisiondetection.Youwillalsobetaughthowtobuildasimplephysicsengine,whereRigidBodyphysicsisthemainfocus,andlearnaboutintersectionalgorithmsforprimitiveshapes.You’llbeginbybuildingastrongfoundationinmathematicsthatwillbeusedthroughoutthebook.We’llguideyouthroughimplementing2Dand3Dprimitivesandshowyouhowtoperformeffectivecollisiontestsforthem.Wethenpivottooneoftheharderareasofgamedevelopment—collisiondetectionandresolution.Furtheron,youwilllearnwhataPhysicsengineis,howtosetupagamewindow,andhowtoimplementrendering.We’llexploreadvancedphysicstopicssuchasconstraintsolving.You’llalsofindouthowtoimplementarudimentaryphysicsengine,whichyoucanusetobuildanAngryBirdstypeofgameoramoreadvancedgame.Bytheendofthebook,youwillhaveimplementedallprimitiveandsomeadvancedcollisiontests,andyouwillbeabletoreadongeometryandlinearAlgebraformulastotakeforwardtoyourowngames!StyleandapproachGainthenecessaryskillsneededtobuildaPhysicsengineforyourgamesthroughpracticalrecipes,inaneasy-to-readmanner.Everytopicexplainedinthebookhasclear,easytounderstandcodeaccompanyingit.
·9.9萬字