threejs-interaction
Build Interactive Three.js Scenes
Object picking and camera controls can conflict when they share the same canvas. Use Three.js examples to map pointer input, select objects, and coordinate camera movement with editing tools.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "threejs-interaction" from https://skillstore.io/skills/cloudai-x-threejs-interaction.md and its manifest at https://skillstore.io/api/skills/cloudai-x-threejs-interaction/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela polĂtica de segurança.
Recursos legĂveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "threejs-interaction". Clicks select the wrong mesh when the canvas is below a toolbar.
Resultado esperado:
Use the canvas bounds to normalize the pointer position. Raycast only against selectable meshes, then highlight the nearest hit or clear the selection when nothing is hit.
Usando "threejs-interaction". The camera rotates when I drag the scale gizmo.
Resultado esperado:
Disable orbit input when the gizmo starts dragging and restore it when the drag ends. Add the gizmo helper, not the controls object, to the scene.
Usando "threejs-interaction". My selection rectangle does not select a mesh that touches its edge.
Resultado esperado:
SelectionBox checks the center of the mesh's bounding sphere. An overlapping edge does not qualify when the center is outside the selection volume.
Auditoria de segurança
SeguroAll 65 static alerts are false positives. The 61 shell alerts match Markdown formatting, and the four key-file alerts match browser keyboard shortcuts. The review found no evidence of prompt injection or unauthorized data access.
Fatores de risco
⚙️ Comandos externos (50)
Compartilhar e citar este relatĂłrio
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatĂłrio
https://skillstore.io/skills/cloudai-x-threejs-interaction/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/cloudai-x-threejs-interaction?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/cloudai-x-threejs-interaction?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudai-x-threejs-interaction/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/cloudai-x-threejs-interaction.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
cloudai-x. (2026). threejs-interaction security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudai-x-threejs-interaction/audits/1Citação BibTeX
@techreport{cloudai-x-cloudai-x-threejs-interaction-2026,
author = {cloudai-x},
title = {threejs-interaction security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudai-x-threejs-interaction/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "threejs-interaction security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudai-x"
date-released: "2026-11-21"
url: "https://skillstore.io/skills/cloudai-x-threejs-interaction/audits/1"
identifiers:
- type: other
value: "skillstore:cloudai-x-threejs-interaction:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Make a product viewer interactive
Let visitors orbit a product and highlight the nearest selectable part when they click or tap.
Add first-person navigation
Use pointer lock and frame-time updates to move a first-person camera through a browser scene.
Build a scene editing tool
Add rectangle selection and a transform gizmo with snapping. Pause orbiting while users drag the gizmo.
Teste estes prompts
Add pointer selection to my Three.js r186 canvas. Use canvas-relative coordinates and highlight the nearest selectable mesh.
Add OrbitControls to my product viewer with damping and zoom limits. Show the frame update and explain how to dispose of the controls.
Attach a transform gizmo to the selected mesh and configure snapping for translation, rotation, and scale. Pause orbiting during gizmo drags and restore it when the drag ends.
Adapt my Three.js picking and orbit controls to WebGPURenderer. Use proxy geometry on a dedicated picking layer. Explain where the proxy may differ from the visible mesh.
Boas práticas
- Measure pointer coordinates against the canvas bounds and raycast only against objects users can select.
- Update time-dependent controls each frame with elapsed seconds from Three.js Timer.
- Keep references to event handlers so you can remove them, and dispose of controls and timers during teardown.
Evitar
- Normalize pointer coordinates against the full window when the canvas is embedded or offset.
- Let OrbitControls and the transform gizmo respond to the same drag.
- Assume CPU raycasting detects a surface displaced by a shader.
Perguntas frequentes
Which Three.js release do the examples target?
Do camera controls work with both WebGL and WebGPU?
Can I use the same picking handler for mouse and touch?
Can I pick invisible objects?
When should I use DragControls instead of TransformControls?
Does pointer lock require a user gesture?
Detalhes do desenvolvedor
Autor
cloudai-xLicença
Desconhecido
RevisĂŁo da Skillstore
r1
Aviso de versĂŁo
O autor nĂŁo declarou uma versĂŁo.
RepositĂłrio
https://github.com/cloudai-x/threejs-skills/tree/0e181866f095b5f06d005133876e926515390d95/skills/threejs-interactionReferĂŞncia
5a685fd3b2304f9e4cbf5164d3ac3186cd35324e
Atualidade da manutenção
25/11/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos
đź“„ SKILL.md