[{"data":1,"prerenderedAt":385},["ShallowReactive",2],{"navigation":3,"/api/rigid-body/automatic-colliders":72,"/api/rigid-body/automatic-colliders-surround":380},[4,22],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation Guide","/getting-started/installation","1.getting-started/2.installation",{"title":15,"path":16,"stem":17},"Usage","/getting-started/usage","1.getting-started/3.usage",{"title":19,"path":20,"stem":21},"How it works","/getting-started/how-it-works","1.getting-started/how-it-works",{"title":23,"path":24,"stem":25,"children":26},"Api","/api","2.api",[27,30,64,68],{"title":28,"path":24,"stem":29},"Physics","2.api/index",{"title":31,"path":32,"stem":33,"children":34},"Rigid body","/api/rigid-body","2.api/1.rigid-body/index",[35,36,40,44,48,52,56,60],{"title":31,"path":32,"stem":33},{"title":37,"path":38,"stem":39},"Automatic colliders","/api/rigid-body/automatic-colliders","2.api/1.rigid-body/1.automatic-colliders",{"title":41,"path":42,"stem":43},"Custom colliders","/api/rigid-body/custom-colliders","2.api/1.rigid-body/2.custom-colliders",{"title":45,"path":46,"stem":47},"Forces","/api/rigid-body/forces","2.api/1.rigid-body/3.forces",{"title":49,"path":50,"stem":51},"Collisions","/api/rigid-body/collisions","2.api/1.rigid-body/4.collisions",{"title":53,"path":54,"stem":55},"Sensor","/api/rigid-body/sensor","2.api/1.rigid-body/5.sensor",{"title":57,"path":58,"stem":59},"Contact force","/api/rigid-body/contact-force","2.api/1.rigid-body/6.contact-force",{"title":61,"path":62,"stem":63},"Instance rigid body","/api/rigid-body/instance-rigid-body","2.api/1.rigid-body/7.instance-rigid-body",{"title":65,"path":66,"stem":67},"Joints","/api/joint","2.api/2.joint",{"title":69,"path":70,"stem":71},"UseRapier","/api/use-rapier","2.api/3.use-rapier",{"id":73,"title":37,"body":74,"description":373,"extension":374,"links":375,"meta":376,"navigation":377,"path":38,"seo":378,"stem":39,"__hash__":379},"docs/2.api/1.rigid-body/1.automatic-colliders.md",{"type":75,"value":76,"toc":370},"minimark",[77,94,100,103,253,258,357,366],[78,79,80,84,85,89,90,93],"p",{},[81,82,83],"code",{},"RigidBody"," comes with automatic colliders, if you need a custom Collider please\ncheck ",[86,87,88],"a",{"href":42},"Custom Colliders",", you can specify a set of\npre-defined colliders in order to fit the mesh with the best shape possible.\n",[81,91,92],{},"cuboid"," is the default.",[95,96,97],"scene-wrapper",{},[98,99],"demos-automatic-colliders",{},[78,101,102],{},"A basic example, a ball falling down:",[104,105,112],"pre",{"className":106,"code":107,"highlights":108,"language":110,"meta":111,"style":111},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003CRigidBody collider=\"ball\">\n    \u003CTresMesh :position=\"[0,7, 0]\">\n      \u003CTresSphereGeometry />\n      \u003CTresMeshNormalMaterial />\n    \u003C/TresMesh>\n  \u003C/RigidBody>\n\u003C/template>\n",[109],2,"vue","",[81,113,114,130,157,201,213,223,233,243],{"__ignoreMap":111},[115,116,119,123,127],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"sMK4o","\u003C",[115,124,126],{"class":125},"swJcz","template",[115,128,129],{"class":121},">\n",[115,131,134,137,139,143,146,149,153,155],{"class":132,"line":109},[117,133],"highlight",[115,135,136],{"class":121},"  \u003C",[115,138,83],{"class":125},[115,140,142],{"class":141},"spNyl"," collider",[115,144,145],{"class":121},"=",[115,147,148],{"class":121},"\"",[115,150,152],{"class":151},"sfazB","ball",[115,154,148],{"class":121},[115,156,129],{"class":121},[115,158,160,163,166,169,172,174,176,179,183,186,189,192,194,197,199],{"class":117,"line":159},3,[115,161,162],{"class":121},"    \u003C",[115,164,165],{"class":125},"TresMesh",[115,167,168],{"class":121}," :",[115,170,171],{"class":141},"position",[115,173,145],{"class":121},[115,175,148],{"class":121},[115,177,178],{"class":121},"[",[115,180,182],{"class":181},"sbssI","0",[115,184,185],{"class":121},",",[115,187,188],{"class":181},"7",[115,190,191],{"class":121},", ",[115,193,182],{"class":181},[115,195,196],{"class":121},"]",[115,198,148],{"class":121},[115,200,129],{"class":121},[115,202,204,207,210],{"class":117,"line":203},4,[115,205,206],{"class":121},"      \u003C",[115,208,209],{"class":125},"TresSphereGeometry",[115,211,212],{"class":121}," />\n",[115,214,216,218,221],{"class":117,"line":215},5,[115,217,206],{"class":121},[115,219,220],{"class":125},"TresMeshNormalMaterial",[115,222,212],{"class":121},[115,224,226,229,231],{"class":117,"line":225},6,[115,227,228],{"class":121},"    \u003C/",[115,230,165],{"class":125},[115,232,129],{"class":121},[115,234,236,239,241],{"class":117,"line":235},7,[115,237,238],{"class":121},"  \u003C/",[115,240,83],{"class":125},[115,242,129],{"class":121},[115,244,246,249,251],{"class":117,"line":245},8,[115,247,248],{"class":121},"\u003C/",[115,250,126],{"class":125},[115,252,129],{"class":121},[254,255,257],"h3",{"id":256},"available-automatic-colliders","Available Automatic Colliders",[259,260,261,275],"table",{},[262,263,264],"thead",{},[265,266,267,272],"tr",{},[268,269,271],"th",{"align":270},"left","Types",[268,273,274],{"align":270},"Description",[276,277,278,288,297,307,317,327,337,347],"tbody",{},[265,279,280,285],{},[281,282,283],"td",{"align":270},[81,284,92],{},[281,286,287],{"align":270},"Box shape",[265,289,290,294],{},[281,291,292],{"align":270},[81,293,152],{},[281,295,296],{"align":270},"Sphere shape",[265,298,299,304],{},[281,300,301],{"align":270},[81,302,303],{},"capsule",[281,305,306],{"align":270},"Capsule shape",[265,308,309,314],{},[281,310,311],{"align":270},[81,312,313],{},"cone",[281,315,316],{"align":270},"Cone shape",[265,318,319,324],{},[281,320,321],{"align":270},[81,322,323],{},"cylinder",[281,325,326],{"align":270},"Cylinder shape",[265,328,329,334],{},[281,330,331],{"align":270},[81,332,333],{},"convexHull",[281,335,336],{"align":270},"Compute the convex hull (shape) of the given set of points.",[265,338,339,344],{},[281,340,341],{"align":270},[81,342,343],{},"trimesh",[281,345,346],{"align":270},"A set of indices indicating what vertex is used by what triangle.",[265,348,349,354],{},[281,350,351],{"align":270},[81,352,353],{},"heightfield",[281,355,356],{"align":270},"Large rectangle in the X-Z plane, subdivided in a grid pattern at regular intervals",[358,359,360],"warning",{},[78,361,362,363,365],{},"Avoid using ",[81,364,343],{}," with dynamic bodies, since the performance get compromised",[367,368,369],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":111,"searchDepth":118,"depth":109,"links":371},[372],{"id":256,"depth":159,"text":257},"Automatically generated colliders that fit your mesh shape when a RigidBody is created, with support for cuboid, ball, capsule, and other preset shapes.","md",null,{},true,{"title":37,"description":373},"VBdyxmWcIZML67erPiKADN4cstfwHvnYr2QlacQGNKo",[381,383],{"title":31,"path":32,"stem":33,"description":382,"children":-1},"The real-time simulation of rigid-bodies subjected to forces and contacts is the main feature of a physics engine for video-games, robotics, or animation.",{"title":41,"path":42,"stem":43,"description":384,"children":-1},"Add custom colliders not tied to a 3D mesh to define precise collision shapes using cuboid, ball, capsule, hull, trimesh, and other built-in collider types.",1781680040529]