[{"data":1,"prerenderedAt":364},["ShallowReactive",2],{"navigation":3,"/api/rigid-body/automatic-colliders":72,"/api/rigid-body/automatic-colliders-surround":359},[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":352,"extension":353,"links":354,"meta":355,"navigation":356,"path":38,"seo":357,"stem":39,"__hash__":358},"docs/2.api/1.rigid-body/1.automatic-colliders.md",{"type":75,"value":76,"toc":349},"minimark",[77,94,100,103,232,237,336,345],[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,180,192,202,212,222],{"__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,171,173,176,178],{"class":117,"line":159},3,[115,161,162],{"class":121},"    \u003C",[115,164,165],{"class":125},"TresMesh",[115,167,168],{"class":141}," :position",[115,170,145],{"class":121},[115,172,148],{"class":121},[115,174,175],{"class":151},"[0,7, 0]",[115,177,148],{"class":121},[115,179,129],{"class":121},[115,181,183,186,189],{"class":117,"line":182},4,[115,184,185],{"class":121},"      \u003C",[115,187,188],{"class":125},"TresSphereGeometry",[115,190,191],{"class":121}," />\n",[115,193,195,197,200],{"class":117,"line":194},5,[115,196,185],{"class":121},[115,198,199],{"class":125},"TresMeshNormalMaterial",[115,201,191],{"class":121},[115,203,205,208,210],{"class":117,"line":204},6,[115,206,207],{"class":121},"    \u003C/",[115,209,165],{"class":125},[115,211,129],{"class":121},[115,213,215,218,220],{"class":117,"line":214},7,[115,216,217],{"class":121},"  \u003C/",[115,219,83],{"class":125},[115,221,129],{"class":121},[115,223,225,228,230],{"class":117,"line":224},8,[115,226,227],{"class":121},"\u003C/",[115,229,126],{"class":125},[115,231,129],{"class":121},[233,234,236],"h3",{"id":235},"available-automatic-colliders","Available Automatic Colliders",[238,239,240,254],"table",{},[241,242,243],"thead",{},[244,245,246,251],"tr",{},[247,248,250],"th",{"align":249},"left","Types",[247,252,253],{"align":249},"Description",[255,256,257,267,276,286,296,306,316,326],"tbody",{},[244,258,259,264],{},[260,261,262],"td",{"align":249},[81,263,92],{},[260,265,266],{"align":249},"Box shape",[244,268,269,273],{},[260,270,271],{"align":249},[81,272,152],{},[260,274,275],{"align":249},"Sphere shape",[244,277,278,283],{},[260,279,280],{"align":249},[81,281,282],{},"capsule",[260,284,285],{"align":249},"Capsule shape",[244,287,288,293],{},[260,289,290],{"align":249},[81,291,292],{},"cone",[260,294,295],{"align":249},"Cone shape",[244,297,298,303],{},[260,299,300],{"align":249},[81,301,302],{},"cylinder",[260,304,305],{"align":249},"Cylinder shape",[244,307,308,313],{},[260,309,310],{"align":249},[81,311,312],{},"convexHull",[260,314,315],{"align":249},"Compute the convex hull (shape) of the given set of points.",[244,317,318,323],{},[260,319,320],{"align":249},[81,321,322],{},"trimesh",[260,324,325],{"align":249},"A set of indices indicating what vertex is used by what triangle.",[244,327,328,333],{},[260,329,330],{"align":249},[81,331,332],{},"heightfield",[260,334,335],{"align":249},"Large rectangle in the X-Z plane, subdivided in a grid pattern at regular intervals",[337,338,339],"warning",{},[78,340,341,342,344],{},"Avoid using ",[81,343,322],{}," with dynamic bodies, since the performance get compromised",[346,347,348],"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 .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":350},[351],{"id":235,"depth":159,"text":236},"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":352},"pfQQNIycFCYohYiOXp28XimgjlthyfzcxCpVXGZlAl4",[360,362],{"title":31,"path":32,"stem":33,"description":361,"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":363,"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.",1789116600848]