بنقرة واحدة
threejs-collision-patterns
Collision detection patterns for Three.js games without physics engines
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Collision detection patterns for Three.js games without physics engines
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Three.js Polygon Streaming .xrg integration and debugging playbook for @polygon-streaming/web-player-threejs, including correct wrapper events, asset publishing, model fitting, and fallback replacement policy
Bundle entry for the exported VIVERSE PlayCanvas Toolkit workflow pack. Use when you want bundled VIVERSE PlayCanvas Toolkit skills, prompts, catalogs, and helper assets in one standalone package.
Protect third-party API keys by moving secret-bearing calls into VIVERSE Play Lambda scripts and keeping only non-secret user data in VIVERSE Storage.
Build or fix CPU racing drivers for Three.js or VIVERSE racing games. Use for waypoint loops, tile-to-route reconstruction, lap completion, recovery logic, and low-overhead debug workflows.
VIVERSE Login SDK integration for user authentication and SSO
Integrate VIVERSE Token Gateway for AI chat in published apps — auth header construction, non-streaming and SSE streaming patterns, rate-limit handling, and error recovery.
| name | threejs-collision-patterns |
| description | Collision detection patterns for Three.js games without physics engines |
| prerequisites | ["Three.js imported","Game loop with delta time"] |
| tags | ["threejs","collision","physics","game","hitbox"] |
Manual collision detection for Three.js games. No physics engine required — uses simple geometric tests each frame.
Use this when a project needs:
Every collidable game object consists of two parts:
The collision primitive is registered at mesh creation time and tested each frame in the game loop.
When implementing collision in a new game:
PLAYER: { COLLISION_RADIUS: 1.65 }).collidable: false for visual-only decoration meshes.collidable: false.COLLISION_RADIUS or radius propertythis.obstacles array) is populated during level buildcheckCollision() BEFORE position.copy(nextPosition)collidable: false