[{"data":1,"prerenderedAt":1825},["ShallowReactive",2],{"navigation":3,"/api/controls/camera-controls":490,"/api/controls/camera-controls-surround":1820},[4,26],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18,22],{"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},"Loading Models","/getting-started/loading-models","1.getting-started/4.loading-models",{"title":23,"path":24,"stem":25},"Upgrade Guide","/getting-started/upgrade-guide","1.getting-started/5.upgrade-guide",{"title":27,"path":28,"stem":29,"children":30},"Api","/api","2.api",[31,34,88,118,160,202,300,326,360,410,456],{"title":32,"path":28,"stem":33},"All","2.api/index",{"title":35,"path":36,"stem":37,"children":38},"Abstractions","/api/abstractions","2.api/1.abstractions/index",[39,40,44,48,52,56,60,64,68,72,76,80,84],{"title":35,"path":36,"stem":37},{"title":41,"path":42,"stem":43},"Align","/api/abstractions/align","2.api/1.abstractions/align",{"title":45,"path":46,"stem":47},"Billboard","/api/abstractions/billboard","2.api/1.abstractions/billboard",{"title":49,"path":50,"stem":51},"Camera Shake","/api/abstractions/camera-shake","2.api/1.abstractions/camera-shake",{"title":53,"path":54,"stem":55},"Decal","/api/abstractions/decal","2.api/1.abstractions/decal",{"title":57,"path":58,"stem":59},"Edges","/api/abstractions/edges","2.api/1.abstractions/edges",{"title":61,"path":62,"stem":63},"Fit","/api/abstractions/fit","2.api/1.abstractions/fit",{"title":65,"path":66,"stem":67},"Levioso (Float)","/api/abstractions/levioso","2.api/1.abstractions/levioso",{"title":69,"path":70,"stem":71},"Mask","/api/abstractions/mask","2.api/1.abstractions/mask",{"title":73,"path":74,"stem":75},"Outline","/api/abstractions/outline","2.api/1.abstractions/outline",{"title":77,"path":78,"stem":79},"Sampler","/api/abstractions/sampler","2.api/1.abstractions/sampler",{"title":81,"path":82,"stem":83},"ScreenSizer","/api/abstractions/screen-sizer","2.api/1.abstractions/screen-sizer",{"title":85,"path":86,"stem":87},"ScreenSpace","/api/abstractions/screen-space","2.api/1.abstractions/screen-space",{"title":89,"path":90,"stem":91,"children":92},"Controls","/api/controls","2.api/2.controls/index",[93,94,98,102,106,110,114],{"title":89,"path":90,"stem":91},{"title":95,"path":96,"stem":97},"Camera Controls","/api/controls/camera-controls","2.api/2.controls/camera-controls",{"title":99,"path":100,"stem":101},"Keyboard Controls","/api/controls/keyboard-controls","2.api/2.controls/keyboard-controls",{"title":103,"path":104,"stem":105},"Map Controls","/api/controls/map-controls","2.api/2.controls/map-controls",{"title":107,"path":108,"stem":109},"Orbit Controls","/api/controls/orbit-controls","2.api/2.controls/orbit-controls",{"title":111,"path":112,"stem":113},"PointerLock Controls","/api/controls/pointer-lock-controls","2.api/2.controls/pointer-lock-controls",{"title":115,"path":116,"stem":117},"Transform Controls","/api/controls/transform-controls","2.api/2.controls/transform-controls",{"title":119,"path":120,"stem":121,"children":122},"Loaders","/api/loaders","2.api/3.loaders/index",[123,124,128,132,136,140,144,148,152,156],{"title":119,"path":120,"stem":121},{"title":125,"path":126,"stem":127},"useGLTF","/api/loaders/use-gltf","2.api/3.loaders/1.use-gltf",{"title":129,"path":130,"stem":131},"GLTFModel","/api/loaders/gltf-model","2.api/3.loaders/2.gltf-model",{"title":133,"path":134,"stem":135},"useFBX","/api/loaders/use-fbx","2.api/3.loaders/3.use-fbx",{"title":137,"path":138,"stem":139},"FBXModel","/api/loaders/fbx-model","2.api/3.loaders/4.fbx-model",{"title":141,"path":142,"stem":143},"useTexture","/api/loaders/use-texture","2.api/3.loaders/5.use-texture",{"title":145,"path":146,"stem":147},"useTextures","/api/loaders/use-textures","2.api/3.loaders/6.use-textures",{"title":149,"path":150,"stem":151},"useSVG","/api/loaders/use-svg","2.api/3.loaders/7.use-svg",{"title":153,"path":154,"stem":155},"useProgress","/api/loaders/use-progress","2.api/3.loaders/use-progress",{"title":157,"path":158,"stem":159},"useVideoTexture","/api/loaders/use-video-texture","2.api/3.loaders/use-video-texture",{"title":161,"path":162,"stem":163,"children":164},"Materials","/api/materials","2.api/4.materials/index",[165,166,170,174,178,182,186,190,194,198],{"title":161,"path":162,"stem":163},{"title":167,"path":168,"stem":169},"Custom Shader Material","/api/materials/custom-shader-material","2.api/4.materials/custom-shader-material",{"title":171,"path":172,"stem":173},"Mesh Glass Material","/api/materials/glass-material","2.api/4.materials/glass-material",{"title":175,"path":176,"stem":177},"Holographic Material","/api/materials/holographic-material","2.api/4.materials/holographic-material",{"title":179,"path":180,"stem":181},"Mesh Discard Material","/api/materials/mesh-discard-material","2.api/4.materials/mesh-discard-material",{"title":183,"path":184,"stem":185},"Mesh Portal Material","/api/materials/mesh-portal-material","2.api/4.materials/mesh-portal-material",{"title":187,"path":188,"stem":189},"Mesh Reflection Material","/api/materials/mesh-reflection-material","2.api/4.materials/mesh-reflection-material",{"title":191,"path":192,"stem":193},"Mesh Transmission Material","/api/materials/mesh-transmission-material","2.api/4.materials/mesh-transmission-material",{"title":195,"path":196,"stem":197},"Point Material","/api/materials/point-material","2.api/4.materials/point-material",{"title":199,"path":200,"stem":201},"Wobble Material","/api/materials/wobble-material","2.api/4.materials/wobble-material",{"title":203,"path":204,"stem":205,"children":206},"Shapes","/api/shapes","2.api/5.shapes/index",[207,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296],{"title":203,"path":204,"stem":205},{"title":209,"path":210,"stem":211},"Box","/api/shapes/box","2.api/5.shapes/box",{"title":213,"path":214,"stem":215},"CatmullRomCurve3","/api/shapes/catmullromcurve3","2.api/5.shapes/catmullromcurve3",{"title":217,"path":218,"stem":219},"Circle","/api/shapes/circle","2.api/5.shapes/circle",{"title":221,"path":222,"stem":223},"Cone","/api/shapes/cone","2.api/5.shapes/cone",{"title":225,"path":226,"stem":227},"Cubic Bezier Line","/api/shapes/cubic-bezier-line","2.api/5.shapes/cubic-bezier-line",{"title":229,"path":230,"stem":231},"Cylinder","/api/shapes/cylinder","2.api/5.shapes/cylinder",{"title":233,"path":234,"stem":235},"Dodecahedron","/api/shapes/dodecahedron","2.api/5.shapes/dodecahedron",{"title":237,"path":238,"stem":239},"Grid","/api/shapes/grid","2.api/5.shapes/grid",{"title":241,"path":242,"stem":243},"Icosahedron","/api/shapes/icosahedron","2.api/5.shapes/icosahedron",{"title":245,"path":246,"stem":247},"Line2","/api/shapes/line2","2.api/5.shapes/line2",{"title":249,"path":250,"stem":251},"Octahedron","/api/shapes/octahedron","2.api/5.shapes/octahedron",{"title":253,"path":254,"stem":255},"Plane","/api/shapes/plane","2.api/5.shapes/plane",{"title":257,"path":258,"stem":259},"Quadratic Bezier Line","/api/shapes/quadratic-bezier-line","2.api/5.shapes/quadratic-bezier-line",{"title":261,"path":262,"stem":263},"Ring","/api/shapes/ring","2.api/5.shapes/ring",{"title":265,"path":266,"stem":267},"Rounded Box","/api/shapes/rounded-box","2.api/5.shapes/rounded-box",{"title":269,"path":270,"stem":271},"Rounded Plane","/api/shapes/rounded-plane","2.api/5.shapes/rounded-plane",{"title":273,"path":274,"stem":275},"Screen Quad","/api/shapes/screen-quad","2.api/5.shapes/screen-quad",{"title":277,"path":278,"stem":279},"Sphere","/api/shapes/sphere","2.api/5.shapes/sphere",{"title":281,"path":282,"stem":283},"Superformula","/api/shapes/superformula","2.api/5.shapes/superformula",{"title":285,"path":286,"stem":287},"Tetrahedron","/api/shapes/tetrahedron","2.api/5.shapes/tetrahedron",{"title":289,"path":290,"stem":291},"Torus","/api/shapes/torus","2.api/5.shapes/torus",{"title":293,"path":294,"stem":295},"Torus Knot","/api/shapes/torus-knot","2.api/5.shapes/torus-knot",{"title":297,"path":298,"stem":299},"Tube","/api/shapes/tube","2.api/5.shapes/tube",{"title":301,"path":302,"stem":303,"children":304},"Debug/Performance","/api/debug-performance","2.api/6.debug-performance/index",[305,306,310,314,318,322],{"title":301,"path":302,"stem":303},{"title":307,"path":308,"stem":309},"Helper","/api/debug-performance/helper","2.api/6.debug-performance/helper",{"title":311,"path":312,"stem":313},"LOD","/api/debug-performance/lod","2.api/6.debug-performance/lod",{"title":315,"path":316,"stem":317},"Stats","/api/debug-performance/stats","2.api/6.debug-performance/stats",{"title":319,"path":320,"stem":321},"StatsGl","/api/debug-performance/stats-gl","2.api/6.debug-performance/stats-gl",{"title":323,"path":324,"stem":325},"useBVH","/api/debug-performance/use-bvh","2.api/6.debug-performance/use-bvh",{"title":327,"path":328,"stem":329,"children":330},"Light/Shadow","/api/light-shadow","2.api/7.light-shadow/index",[331,332,336,340,344,348,352,356],{"title":327,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Accumulative Shadows","/api/light-shadow/accumulative-shadows","2.api/7.light-shadow/accumulative-shadows",{"title":337,"path":338,"stem":339},"Bake Shadows","/api/light-shadow/bake-shadows","2.api/7.light-shadow/bake-shadows",{"title":341,"path":342,"stem":343},"Circle Shadow","/api/light-shadow/circle-shadow","2.api/7.light-shadow/circle-shadow",{"title":345,"path":346,"stem":347},"Contact Shadows","/api/light-shadow/contact-shadows","2.api/7.light-shadow/contact-shadows",{"title":349,"path":350,"stem":351},"Lensflare","/api/light-shadow/lensflare","2.api/7.light-shadow/lensflare",{"title":353,"path":354,"stem":355},"Randomized Lights","/api/light-shadow/randomized-lights","2.api/7.light-shadow/randomized-lights",{"title":357,"path":358,"stem":359},"Soft Shadows","/api/light-shadow/soft-shadows","2.api/7.light-shadow/soft-shadows",{"title":361,"path":362,"stem":363,"children":364},"Staging","/api/staging","2.api/8.staging/index",[365,366,370,374,378,382,386,390,394,398,402,406],{"title":361,"path":362,"stem":363},{"title":367,"path":368,"stem":369},"Environment","/api/staging/environment","2.api/8.staging/1.environment",{"title":371,"path":372,"stem":373},"useEnvironment","/api/staging/use-environment","2.api/8.staging/2.use-environment",{"title":375,"path":376,"stem":377},"Lightformer","/api/staging/lightformer","2.api/8.staging/3.lightformer",{"title":379,"path":380,"stem":381},"Backdrop","/api/staging/backdrop","2.api/8.staging/backdrop",{"title":383,"path":384,"stem":385},"Ocean","/api/staging/ocean","2.api/8.staging/ocean",{"title":387,"path":388,"stem":389},"Precipitation","/api/staging/precipitation","2.api/8.staging/precipitation",{"title":391,"path":392,"stem":393},"Sky","/api/staging/sky","2.api/8.staging/sky",{"title":395,"path":396,"stem":397},"Smoke","/api/staging/smoke","2.api/8.staging/smoke",{"title":399,"path":400,"stem":401},"Sparkles","/api/staging/sparkles","2.api/8.staging/sparkles",{"title":403,"path":404,"stem":405},"Stage","/api/staging/stage","2.api/8.staging/stage",{"title":407,"path":408,"stem":409},"Stars","/api/staging/stars","2.api/8.staging/stars",{"title":411,"path":412,"stem":413,"children":414},"Objects","/api/objects","2.api/9.objects/index",[415,416,420,424,428,432,436,440,444,448,452],{"title":411,"path":412,"stem":413},{"title":417,"path":418,"stem":419},"AnimatedSprite","/api/objects/animated-sprite","2.api/9.objects/animated-sprite",{"title":421,"path":422,"stem":423},"CubeCamera","/api/objects/cube-camera","2.api/9.objects/cube-camera",{"title":425,"path":426,"stem":427},"Fbo","/api/objects/fbo","2.api/9.objects/fbo",{"title":429,"path":430,"stem":431},"GradientTexture","/api/objects/gradient-texture","2.api/9.objects/gradient-texture",{"title":433,"path":434,"stem":435},"HTML","/api/objects/html","2.api/9.objects/html",{"title":437,"path":438,"stem":439},"Image","/api/objects/image","2.api/9.objects/image",{"title":441,"path":442,"stem":443},"MarchingCubes","/api/objects/marching-cubes","2.api/9.objects/marching-cubes",{"title":445,"path":446,"stem":447},"Reflector","/api/objects/reflector","2.api/9.objects/reflector",{"title":449,"path":450,"stem":451},"Refractor","/api/objects/refractor","2.api/9.objects/refractor",{"title":453,"path":454,"stem":455},"Text3D","/api/objects/text-3d","2.api/9.objects/text-3d",{"title":457,"path":458,"stem":459,"children":460},"Miscellaneous","/api/miscellaneous","2.api/miscellaneous/index",[461,462,466,470,474,478,482,486],{"title":457,"path":458,"stem":459},{"title":463,"path":464,"stem":465},"Bounds","/api/miscellaneous/bounds","2.api/miscellaneous/bounds",{"title":467,"path":468,"stem":469},"GlobalAudio","/api/miscellaneous/global-audio","2.api/miscellaneous/global-audio",{"title":471,"path":472,"stem":473},"MouseParallax","/api/miscellaneous/mouse-parallax","2.api/miscellaneous/mouse-parallax",{"title":475,"path":476,"stem":477},"PositionalAudio","/api/miscellaneous/positional-audio","2.api/miscellaneous/positional-audio",{"title":479,"path":480,"stem":481},"useAnimations","/api/miscellaneous/use-animations","2.api/miscellaneous/use-animations",{"title":483,"path":484,"stem":485},"useGLTFExporter","/api/miscellaneous/use-gltf-exporter","2.api/miscellaneous/use-gltf-exporter",{"title":487,"path":488,"stem":489},"useIntersect","/api/miscellaneous/use-intersect","2.api/miscellaneous/use-intersect",{"id":491,"title":95,"body":492,"description":1814,"extension":1815,"links":1816,"meta":1817,"navigation":1363,"path":96,"seo":1818,"stem":97,"__hash__":1819},"docs/2.api/2.controls/camera-controls.md",{"type":493,"value":494,"toc":1805},"minimark",[495,501,516,525,529,784,790,794,797,1266,1269,1298,1430,1435,1564,1574,1577,1701,1705,1761,1801],[496,497,498],"scene-controls-wrapper",{},[499,500],"controls-camera-controls",{},[502,503,504,511,512,515],"p",{},[505,506,510],"a",{"href":507,"rel":508},"https://github.com/yomotsu/camera-controls",[509],"nofollow","CameraControls"," is a camera controller similar to ",[505,513,514],{"href":108},"OrbitControls"," yet supports smooth transitions and more features.",[502,517,518,519,524],{},"However, it is thirty party library for ThreeJS. So to use it you would need to install and import using ",[505,520,523],{"href":521,"rel":522},"https://www.npmjs.com/package/camera-controls",[509],"npm",".",[526,527,15],"h2",{"id":528},"usage",[530,531,538],"pre",{"className":532,"code":533,"highlights":534,"language":536,"meta":537,"style":537},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nimport { CameraControls } from \"@tresjs/cientos\"\n\u003C/script>\n\u003Ctemplate>\n  \u003CTresCanvas clear-color=\"#82DBC5\">\n    \u003CTresPerspectiveCamera :position=\"[3, 3, 3]\" />\n    \u003CCameraControls />\n    \u003CBox :scale=\"2\">\n      \u003CTresMeshToonMaterial color=\"orange\" />\n    \u003C/Box>\n    \u003CTresAmbientLight />\n    \u003CTresDirectionalLight :position=\"[0, 2, 4]\" />\n    \u003CTresGridHelper />\n  \u003C/TresCanvas>\n\u003C/template>\n",[535],7,"vue","",[539,540,541,561,591,601,611,636,660,670,691,714,724,734,755,765,775],"code",{"__ignoreMap":537},[542,543,546,550,554,558],"span",{"class":544,"line":545},"line",1,[542,547,549],{"class":548},"sMK4o","\u003C",[542,551,553],{"class":552},"swJcz","script",[542,555,557],{"class":556},"spNyl"," setup",[542,559,560],{"class":548},">\n",[542,562,564,568,571,575,578,581,584,588],{"class":544,"line":563},2,[542,565,567],{"class":566},"s7zQu","import",[542,569,570],{"class":548}," {",[542,572,574],{"class":573},"sTEyZ"," CameraControls",[542,576,577],{"class":548}," }",[542,579,580],{"class":566}," from",[542,582,583],{"class":548}," \"",[542,585,587],{"class":586},"sfazB","@tresjs/cientos",[542,589,590],{"class":548},"\"\n",[542,592,594,597,599],{"class":544,"line":593},3,[542,595,596],{"class":548},"\u003C/",[542,598,553],{"class":552},[542,600,560],{"class":548},[542,602,604,606,609],{"class":544,"line":603},4,[542,605,549],{"class":548},[542,607,608],{"class":552},"template",[542,610,560],{"class":548},[542,612,614,617,620,623,626,629,632,634],{"class":544,"line":613},5,[542,615,616],{"class":548},"  \u003C",[542,618,619],{"class":552},"TresCanvas",[542,621,622],{"class":556}," clear-color",[542,624,625],{"class":548},"=",[542,627,628],{"class":548},"\"",[542,630,631],{"class":586},"#82DBC5",[542,633,628],{"class":548},[542,635,560],{"class":548},[542,637,639,642,645,648,650,652,655,657],{"class":544,"line":638},6,[542,640,641],{"class":548},"    \u003C",[542,643,644],{"class":552},"TresPerspectiveCamera",[542,646,647],{"class":556}," :position",[542,649,625],{"class":548},[542,651,628],{"class":548},[542,653,654],{"class":586},"[3, 3, 3]",[542,656,628],{"class":548},[542,658,659],{"class":548}," />\n",[542,661,664,666,668],{"class":662,"line":535},[544,663],"highlight",[542,665,641],{"class":548},[542,667,510],{"class":552},[542,669,659],{"class":548},[542,671,673,675,677,680,682,684,687,689],{"class":544,"line":672},8,[542,674,641],{"class":548},[542,676,209],{"class":552},[542,678,679],{"class":556}," :scale",[542,681,625],{"class":548},[542,683,628],{"class":548},[542,685,686],{"class":586},"2",[542,688,628],{"class":548},[542,690,560],{"class":548},[542,692,694,697,700,703,705,707,710,712],{"class":544,"line":693},9,[542,695,696],{"class":548},"      \u003C",[542,698,699],{"class":552},"TresMeshToonMaterial",[542,701,702],{"class":556}," color",[542,704,625],{"class":548},[542,706,628],{"class":548},[542,708,709],{"class":586},"orange",[542,711,628],{"class":548},[542,713,659],{"class":548},[542,715,717,720,722],{"class":544,"line":716},10,[542,718,719],{"class":548},"    \u003C/",[542,721,209],{"class":552},[542,723,560],{"class":548},[542,725,727,729,732],{"class":544,"line":726},11,[542,728,641],{"class":548},[542,730,731],{"class":552},"TresAmbientLight",[542,733,659],{"class":548},[542,735,737,739,742,744,746,748,751,753],{"class":544,"line":736},12,[542,738,641],{"class":548},[542,740,741],{"class":552},"TresDirectionalLight",[542,743,647],{"class":556},[542,745,625],{"class":548},[542,747,628],{"class":548},[542,749,750],{"class":586},"[0, 2, 4]",[542,752,628],{"class":548},[542,754,659],{"class":548},[542,756,758,760,763],{"class":544,"line":757},13,[542,759,641],{"class":548},[542,761,762],{"class":552},"TresGridHelper",[542,764,659],{"class":548},[542,766,768,771,773],{"class":544,"line":767},14,[542,769,770],{"class":548},"  \u003C/",[542,772,619],{"class":552},[542,774,560],{"class":548},[542,776,778,780,782],{"class":544,"line":777},15,[542,779,596],{"class":548},[542,781,608],{"class":552},[542,783,560],{"class":548},[785,786,787],"prose-warning",{},[502,788,789],{},"Is really important that the Perspective camera is set first in the canvas. Otherwise might break.",[526,791,793],{"id":792},"props","Props",[502,795,796],{},"Certainly! Here's the properties of the object in raw markdown table format:",[798,799,800,817],"table",{},[801,802,803],"thead",{},[804,805,806,811,814],"tr",{},[807,808,810],"th",{"align":809},"left","Prop",[807,812,813],{"align":809},"Description",[807,815,816],{},"Default",[818,819,820,837,852,866,881,896,911,926,941,956,970,987,1002,1016,1031,1046,1060,1075,1089,1103,1119,1134,1150,1164,1182,1197,1215,1230,1250],"tbody",{},[804,821,822,829,832],{},[823,824,825],"td",{"align":809},[826,827,828],"strong",{},"makeDefault",[823,830,831],{"align":809},"Whether to make this the default controls.",[823,833,834],{},[539,835,836],{},"false",[804,838,839,844,847],{},[823,840,841],{"align":809},[826,842,843],{},"camera",[823,845,846],{"align":809},"The camera to control.",[823,848,849],{},[539,850,851],{},"undefined",[804,853,854,859,862],{},[823,855,856],{"align":809},[826,857,858],{},"domElement",[823,860,861],{"align":809},"The DOM element to listen to.",[823,863,864],{},[539,865,851],{},[804,867,868,873,876],{},[823,869,870],{"align":809},[826,871,872],{},"minPolarAngle",[823,874,875],{"align":809},"Minimum vertical angle in radians.",[823,877,878],{},[539,879,880],{},"0",[804,882,883,888,891],{},[823,884,885],{"align":809},[826,886,887],{},"maxPolarAngle",[823,889,890],{"align":809},"Maximum vertical angle in radians.",[823,892,893],{},[539,894,895],{},"Math.PI",[804,897,898,903,906],{},[823,899,900],{"align":809},[826,901,902],{},"minAzimuthAngle",[823,904,905],{"align":809},"Minimum horizontal angle in radians.",[823,907,908],{},[539,909,910],{},"-Infinity",[804,912,913,918,921],{},[823,914,915],{"align":809},[826,916,917],{},"maxAzimuthAngle",[823,919,920],{"align":809},"Maximum horizontal angle in radians.",[823,922,923],{},[539,924,925],{},"Infinity",[804,927,928,933,936],{},[823,929,930],{"align":809},[826,931,932],{},"distance",[823,934,935],{"align":809},"Current distance.",[823,937,938],{},[539,939,940],{},"camera.position.z",[804,942,943,948,951],{},[823,944,945],{"align":809},[826,946,947],{},"minDistance",[823,949,950],{"align":809},"Minimum distance for dolly. PerspectiveCamera only.",[823,952,953],{},[539,954,955],{},"Number.EPSILON",[804,957,958,963,966],{},[823,959,960],{"align":809},[826,961,962],{},"maxDistance",[823,964,965],{"align":809},"Maximum distance for dolly. PerspectiveCamera only.",[823,967,968],{},[539,969,925],{},[804,971,972,977,983],{},[823,973,974],{"align":809},[826,975,976],{},"infinityDolly",[823,978,979,982],{"align":809},[539,980,981],{},"true"," to enable Infinity Dolly for wheel and pinch.",[823,984,985],{},[539,986,836],{},[804,988,989,994,997],{},[823,990,991],{"align":809},[826,992,993],{},"minZoom",[823,995,996],{"align":809},"Minimum camera zoom.",[823,998,999],{},[539,1000,1001],{},"0.01",[804,1003,1004,1009,1012],{},[823,1005,1006],{"align":809},[826,1007,1008],{},"maxZoom",[823,1010,1011],{"align":809},"Maximum camera zoom.",[823,1013,1014],{},[539,1015,925],{},[804,1017,1018,1023,1026],{},[823,1019,1020],{"align":809},[826,1021,1022],{},"smoothTime",[823,1024,1025],{"align":809},"Approximate time in seconds to reach the target. A smaller value will reach the target faster.",[823,1027,1028],{},[539,1029,1030],{},"0.25",[804,1032,1033,1038,1041],{},[823,1034,1035],{"align":809},[826,1036,1037],{},"draggingSmoothTime",[823,1039,1040],{"align":809},"The smoothTime while dragging.",[823,1042,1043],{},[539,1044,1045],{},"0.125",[804,1047,1048,1053,1056],{},[823,1049,1050],{"align":809},[826,1051,1052],{},"maxSpeed",[823,1054,1055],{"align":809},"Max transition speed in units per second.",[823,1057,1058],{},[539,1059,925],{},[804,1061,1062,1067,1070],{},[823,1063,1064],{"align":809},[826,1065,1066],{},"azimuthRotateSpeed",[823,1068,1069],{"align":809},"Speed of azimuth (horizontal) rotation.",[823,1071,1072],{},[539,1073,1074],{},"1.0",[804,1076,1077,1082,1085],{},[823,1078,1079],{"align":809},[826,1080,1081],{},"polarRotateSpeed",[823,1083,1084],{"align":809},"Speed of polar (vertical) rotation.",[823,1086,1087],{},[539,1088,1074],{},[804,1090,1091,1096,1099],{},[823,1092,1093],{"align":809},[826,1094,1095],{},"dollySpeed",[823,1097,1098],{"align":809},"Speed of mouse-wheel dollying.",[823,1100,1101],{},[539,1102,1074],{},[804,1104,1105,1110,1115],{},[823,1106,1107],{"align":809},[826,1108,1109],{},"dollyDragInverted",[823,1111,1112,1114],{"align":809},[539,1113,981],{}," to invert direction when dollying or zooming via drag.",[823,1116,1117],{},[539,1118,836],{},[804,1120,1121,1126,1129],{},[823,1122,1123],{"align":809},[826,1124,1125],{},"truckSpeed",[823,1127,1128],{"align":809},"Speed of drag for truck and pedestal.",[823,1130,1131],{},[539,1132,1133],{},"2.0",[804,1135,1136,1141,1146],{},[823,1137,1138],{"align":809},[826,1139,1140],{},"dollyToCursor",[823,1142,1143,1145],{"align":809},[539,1144,981],{}," to enable Dolly-in to the mouse cursor coords.",[823,1147,1148],{},[539,1149,836],{},[804,1151,1152,1157,1160],{},[823,1153,1154],{"align":809},[826,1155,1156],{},"dragToOffset",[823,1158,1159],{"align":809},"Whether to drag to offset.",[823,1161,1162],{},[539,1163,836],{},[804,1165,1166,1171,1178],{},[823,1167,1168],{"align":809},[826,1169,1170],{},"verticalDragToForward",[823,1172,1173,1174,1177],{"align":809},"The same as ",[539,1175,1176],{},".screenSpacePanning"," in Three.js's OrbitControls.",[823,1179,1180],{},[539,1181,836],{},[804,1183,1184,1189,1192],{},[823,1185,1186],{"align":809},[826,1187,1188],{},"boundaryFriction",[823,1190,1191],{"align":809},"Friction ratio of the boundary.",[823,1193,1194],{},[539,1195,1196],{},"0.0",[804,1198,1199,1204,1211],{},[823,1200,1201],{"align":809},[826,1202,1203],{},"restThreshold",[823,1205,1206,1207,1210],{"align":809},"Controls how soon the ",[539,1208,1209],{},"rest"," event fires as the camera slows.",[823,1212,1213],{},[539,1214,1001],{},[804,1216,1217,1222,1225],{},[823,1218,1219],{"align":809},[826,1220,1221],{},"colliderMeshes",[823,1223,1224],{"align":809},"An array of Meshes to collide with the camera. Be aware colliderMeshes may decrease performance. The collision test uses 4 raycasters from the camera since the near plane has 4 corners.",[823,1226,1227],{},[539,1228,1229],{},"[]",[804,1231,1232,1237,1240],{},[823,1233,1234],{"align":809},[826,1235,1236],{},"mouseButtons",[823,1238,1239],{"align":809},"Configuration of actions on mouse input.",[823,1241,1242,1243,1249],{},"See ",[505,1244,1246],{"href":1245},"#user-input-config",[539,1247,1248],{},"User input config"," for details",[804,1251,1252,1257,1260],{},[823,1253,1254],{"align":809},[826,1255,1256],{},"touches",[823,1258,1259],{"align":809},"Configuration of actions on touch.",[823,1261,1242,1262,1249],{},[505,1263,1264],{"href":1245},[539,1265,1248],{},[526,1267,1248],{"id":1268},"user-input-config",[502,1270,1271,1272,1274,1275,1277,1278,1286,1287,1289,1290,1293,1294,1297],{},"You can easily override the default user input config by defining ",[539,1273,1236],{}," and/or ",[539,1276,1256],{}," props that correspond to ",[505,1279,1282,1285],{"href":1280,"rel":1281},"https://github.com/yomotsu/camera-controls?#user-input-config",[509],[539,1283,1284],{},"camera-controls"," settings",". For ease of use, we're re-exporting the ",[539,1288,510],{}," class as ",[539,1291,1292],{},"BaseCameraControls"," which gives you access to the ",[539,1295,1296],{},"ACTION"," enum.",[530,1299,1301],{"className":532,"code":1300,"language":536,"meta":537,"style":537},"\u003Cscript lang=\"ts\" setup>\nimport { BaseCameraControls, CameraControls } from '@tresjs/cientos'\n\u003C/script>\n\n\u003Ctemplate>\n  ...\n  \u003CCameraControls\n    :mouse-buttons=\"{ left: BaseCameraControls.ACTION.DOLLY }\"\n    :touches=\"{ one: BaseCameraControls.ACTION.TOUCH_TRUCK }\"\n  />\n  ...\n\u003C/template>\n",[539,1302,1303,1325,1351,1359,1365,1373,1378,1385,1399,1413,1418,1422],{"__ignoreMap":537},[542,1304,1305,1307,1309,1312,1314,1316,1319,1321,1323],{"class":544,"line":545},[542,1306,549],{"class":548},[542,1308,553],{"class":552},[542,1310,1311],{"class":556}," lang",[542,1313,625],{"class":548},[542,1315,628],{"class":548},[542,1317,1318],{"class":586},"ts",[542,1320,628],{"class":548},[542,1322,557],{"class":556},[542,1324,560],{"class":548},[542,1326,1327,1329,1331,1334,1337,1339,1341,1343,1346,1348],{"class":544,"line":563},[542,1328,567],{"class":566},[542,1330,570],{"class":548},[542,1332,1333],{"class":573}," BaseCameraControls",[542,1335,1336],{"class":548},",",[542,1338,574],{"class":573},[542,1340,577],{"class":548},[542,1342,580],{"class":566},[542,1344,1345],{"class":548}," '",[542,1347,587],{"class":586},[542,1349,1350],{"class":548},"'\n",[542,1352,1353,1355,1357],{"class":544,"line":593},[542,1354,596],{"class":548},[542,1356,553],{"class":552},[542,1358,560],{"class":548},[542,1360,1361],{"class":544,"line":603},[542,1362,1364],{"emptyLinePlaceholder":1363},true,"\n",[542,1366,1367,1369,1371],{"class":544,"line":613},[542,1368,549],{"class":548},[542,1370,608],{"class":552},[542,1372,560],{"class":548},[542,1374,1375],{"class":544,"line":638},[542,1376,1377],{"class":573},"  ...\n",[542,1379,1380,1382],{"class":544,"line":535},[542,1381,616],{"class":548},[542,1383,1384],{"class":552},"CameraControls\n",[542,1386,1387,1390,1392,1394,1397],{"class":544,"line":672},[542,1388,1389],{"class":556},"    :mouse-buttons",[542,1391,625],{"class":548},[542,1393,628],{"class":548},[542,1395,1396],{"class":586},"{ left: BaseCameraControls.ACTION.DOLLY }",[542,1398,590],{"class":548},[542,1400,1401,1404,1406,1408,1411],{"class":544,"line":693},[542,1402,1403],{"class":556},"    :touches",[542,1405,625],{"class":548},[542,1407,628],{"class":548},[542,1409,1410],{"class":586},"{ one: BaseCameraControls.ACTION.TOUCH_TRUCK }",[542,1412,590],{"class":548},[542,1414,1415],{"class":544,"line":716},[542,1416,1417],{"class":548},"  />\n",[542,1419,1420],{"class":544,"line":726},[542,1421,1377],{"class":573},[542,1423,1424,1426,1428],{"class":544,"line":736},[542,1425,596],{"class":548},[542,1427,608],{"class":552},[542,1429,560],{"class":548},[1431,1432,1434],"h3",{"id":1433},"mouse-buttons","Mouse buttons",[798,1436,1437,1449],{},[801,1438,1439],{},[804,1440,1441,1444,1447],{},[807,1442,1443],{},"Button to assign",[807,1445,1446],{},"Options",[807,1448,816],{},[818,1450,1451,1483,1508,1538],{},[804,1452,1453,1458,1479],{},[823,1454,1455],{},[539,1456,1457],{},"mouseButtons.left",[823,1459,1460,1463,1464,1463,1467,1463,1470,1463,1473,1463,1476],{},[539,1461,1462],{},"ROTATE"," | ",[539,1465,1466],{},"TRUCK",[539,1468,1469],{},"OFFSET",[539,1471,1472],{},"DOLLY",[539,1474,1475],{},"ZOOM",[539,1477,1478],{},"NONE",[823,1480,1481],{},[539,1482,1462],{},[804,1484,1485,1490,1504],{},[823,1486,1487],{},[539,1488,1489],{},"mouseButtons.right",[823,1491,1492,1463,1494,1463,1496,1463,1498,1463,1500,1463,1502],{},[539,1493,1462],{},[539,1495,1466],{},[539,1497,1469],{},[539,1499,1472],{},[539,1501,1475],{},[539,1503,1478],{},[823,1505,1506],{},[539,1507,1466],{},[804,1509,1510,1516,1530],{},[823,1511,1512,1515],{},[539,1513,1514],{},"mouseButtons.wheel"," ¹",[823,1517,1518,1463,1520,1463,1522,1463,1524,1463,1526,1463,1528],{},[539,1519,1462],{},[539,1521,1466],{},[539,1523,1469],{},[539,1525,1472],{},[539,1527,1475],{},[539,1529,1478],{},[823,1531,1532,1534,1535,1537],{},[539,1533,1472],{}," for Perspective camera, ",[539,1536,1475],{}," for Orthographic camera.",[804,1539,1540,1546,1560],{},[823,1541,1542,1545],{},[539,1543,1544],{},"mouseButtons.middle"," ²",[823,1547,1548,1463,1550,1463,1552,1463,1554,1463,1556,1463,1558],{},[539,1549,1462],{},[539,1551,1466],{},[539,1553,1469],{},[539,1555,1472],{},[539,1557,1475],{},[539,1559,1478],{},[823,1561,1562],{},[539,1563,1472],{},[1565,1566,1567,1571],"ol",{},[1568,1569,1570],"li",{},"Mouse wheel event for scroll \"up/down\", on mac \"up/down/left/right\".",[1568,1572,1573],{},"Mouse wheel \"button\" click event.",[1431,1575,1576],{"id":1256},"Touches",[798,1578,1579,1590],{},[801,1580,1581],{},[804,1582,1583,1586,1588],{},[807,1584,1585],{},"Fingers to assign",[807,1587,1446],{},[807,1589,816],{},[818,1591,1592,1620,1668],{},[804,1593,1594,1599,1616],{},[823,1595,1596],{},[539,1597,1598],{},"touches.one",[823,1600,1601,1463,1604,1463,1607,1463,1610,1463,1612,1463,1614],{},[539,1602,1603],{},"TOUCH_ROTATE",[539,1605,1606],{},"TOUCH_TRUCK",[539,1608,1609],{},"TOUCH_OFFSET",[539,1611,1472],{},[539,1613,1475],{},[539,1615,1478],{},[823,1617,1618],{},[539,1619,1603],{},[804,1621,1622,1627,1661],{},[823,1623,1624],{},[539,1625,1626],{},"touches.two",[823,1628,1629,1463,1632,1463,1635,1463,1638,1463,1641,1463,1644,1463,1647,1463,1650,1463,1653,1463,1655,1463,1657,1463,1659],{},[539,1630,1631],{},"TOUCH_DOLLY_TRUCK",[539,1633,1634],{},"TOUCH_DOLLY_OFFSET",[539,1636,1637],{},"TOUCH_DOLLY_ROTATE",[539,1639,1640],{},"TOUCH_ZOOM_TRUCK",[539,1642,1643],{},"TOUCH_ZOOM_OFFSET",[539,1645,1646],{},"TOUCH_ZOOM_ROTATE",[539,1648,1649],{},"TOUCH_DOLLY",[539,1651,1652],{},"TOUCH_ZOOM",[539,1654,1603],{},[539,1656,1606],{},[539,1658,1609],{},[539,1660,1478],{},[823,1662,1663,1534,1665,1667],{},[539,1664,1631],{},[539,1666,1640],{}," for Othographic camera.",[804,1669,1670,1675,1697],{},[823,1671,1672],{},[539,1673,1674],{},"touches.three",[823,1676,1677,1463,1679,1463,1681,1463,1683,1463,1685,1463,1687,1463,1689,1463,1691,1463,1693,1463,1695],{},[539,1678,1631],{},[539,1680,1634],{},[539,1682,1637],{},[539,1684,1640],{},[539,1686,1643],{},[539,1688,1646],{},[539,1690,1603],{},[539,1692,1606],{},[539,1694,1609],{},[539,1696,1478],{},[823,1698,1699],{},[539,1700,1606],{},[526,1702,1704],{"id":1703},"events","Events",[530,1706,1708],{"className":532,"code":1707,"language":536,"meta":537,"style":537},"\u003CCameraControls @change=\"onChange\" @start=\"onStart\" @end=\"onEnd\" />\n",[539,1709,1710],{"__ignoreMap":537},[542,1711,1712,1714,1716,1719,1722,1724,1726,1729,1731,1733,1736,1738,1740,1743,1745,1747,1750,1752,1754,1757,1759],{"class":544,"line":545},[542,1713,549],{"class":548},[542,1715,510],{"class":552},[542,1717,1718],{"class":548}," @",[542,1720,1721],{"class":556},"change",[542,1723,625],{"class":548},[542,1725,628],{"class":548},[542,1727,1728],{"class":573},"onChange",[542,1730,628],{"class":548},[542,1732,1718],{"class":548},[542,1734,1735],{"class":556},"start",[542,1737,625],{"class":548},[542,1739,628],{"class":548},[542,1741,1742],{"class":573},"onStart",[542,1744,628],{"class":548},[542,1746,1718],{"class":548},[542,1748,1749],{"class":556},"end",[542,1751,625],{"class":548},[542,1753,628],{"class":548},[542,1755,1756],{"class":573},"onEnd",[542,1758,628],{"class":548},[542,1760,659],{"class":548},[798,1762,1763,1772],{},[801,1764,1765],{},[804,1766,1767,1770],{},[807,1768,1769],{"align":809},"Event",[807,1771,813],{"align":809},[818,1773,1774,1783,1792],{},[804,1775,1776,1780],{},[823,1777,1778],{"align":809},[826,1779,1735],{},[823,1781,1782],{"align":809},"Dispatched when the control starts to change.",[804,1784,1785,1789],{},[823,1786,1787],{"align":809},[826,1788,1721],{},[823,1790,1791],{"align":809},"Dispatched when the control changes.",[804,1793,1794,1798],{},[823,1795,1796],{"align":809},[826,1797,1749],{},[823,1799,1800],{"align":809},"Dispatched when the control ends to change.",[1802,1803,1804],"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 .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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":537,"searchDepth":545,"depth":563,"links":1806},[1807,1808,1809,1813],{"id":528,"depth":563,"text":15},{"id":792,"depth":563,"text":793},{"id":1268,"depth":563,"text":1248,"children":1810},[1811,1812],{"id":1433,"depth":593,"text":1434},{"id":1256,"depth":593,"text":1576},{"id":1703,"depth":563,"text":1704},"Is similar to OrbitControls yet supports smooth transitions and more features.","md",null,{},{"title":95,"description":1814},"2hfwAcOw9kCB60pKAgItRmaKk8A71rNBCTtreEGn7EI",[1821,1823],{"title":89,"path":90,"stem":91,"description":1822,"children":-1},"All currently supported controls",{"title":99,"path":100,"stem":101,"description":1824,"children":-1},"WASD on QWERTY keyboards or equivalent keys on non-QWERTY keyboards",1785417270324]