Agent skill Web motion
3D Falling Leaves
Use spatial graphics, scenes or materials to support a web experience.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-falling-leaves --skill 3d-falling-leaves --agent claude-code --yesCheck this file in your project.claude/skills/3d-falling-leaves/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-falling-leaves --skill 3d-falling-leavesSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A 3D scene with a camera, sun, and a boundary or shelter model, plus an original leaf texture or shape.
View operation manualWhat this skill helps with
- Use spatial graphics, scenes or materials to support a web experience.
Good for
- 3D on the web
- Publisher
- Meng To
- Control points
- InstancedMesh · phase · omega · slip · recycle bounds
- Verification target
- A leaf has a distinct edge-on pose and the recycle is hidden while camera and shelter behavior stay stable.
- Skill name
3d-falling-leaves- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Use camera-facing particles and randomize each frame.
Billboards hide the edge-on phase and frame-level randomness can make the path jitter.
Use these steps
- Inspect inputs and rendering context
- Apply the documented technique
- Verify on the actual project route
Project walkthrough
Build a leaf that tumbles edge-on and a camera-aware recycling field.
Build a leaf that tumbles edge-on and a camera-aware recycling field.
Inspect inputs and rendering context
Inspect inputs and rendering context
Prompt · Step 1Use 3D Falling Leaves on [garden scene]. Create one two-sided original leaf and define the brighter face, paler back, pivot, fall speed, and shelter volumes. Identify which view to use for inspecting a full turn.Apply the documented technique
Apply the documented technique
Prompt · Step 2Seed phase, omega, slip, and fall speed once per leaf. Use -(slip / omega) * Math.cos(phase + omega * time) as lateral displacement with a nonzero omega. Reuse one InstancedMesh or the current instance path. Move recycling boundaries with the camera while preserving live world positions, and mask sheltered areas.Verify on the actual project route
A leaf has a distinct edge-on pose and the recycle is hidden while camera and shelter behavior stay stable.
- A leaf has a distinct edge-on pose and the recycle is hidden while camera and shelter behavior stay stable.
Prompt · Step 3Track a single leaf through face, edge, back, and reset. Then turn the camera, look up, walk under the roof, and resume after hiding the tab. Confirm no visible reset or interior fall-through and test a still reduced-motion view.
Implementation lookup
Check these values in your existing project and its installed dependencies.
Find the documented controlsInputs
- Command or reference
InstancedMesh · phase · omega · slip · recycle bounds- Examples
- A leaf has a distinct edge-on pose and the recycle is hidden while camera and shelter behavior stay stable.
FAQ
What should I open after installing?
Open SKILL.md and REFERENCES.md in the installed skill directory. Apply the technique to your own scene or component and verify the specified result on that route.
How do I show the result is ready?
A leaf has a distinct edge-on pose and the recycle is hidden while camera and shelter behavior stay stable.