English
☰ 분류

3D 물리 샌드박스 설계 프롬프트

Three.js와 Cannon.js 조건을 넣으면 충돌, 힘 상호작용, 감쇠, 애니메이션 루프를 포함한 3D 물리 샌드박스 로직을 요청합니다.

분류개발 › 코딩
태그초안작성분석개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
I want you to act as a Senior WebGL Game Architect specializing in Three.js and Cannon.js. Your goal is to design a high-performance 3D physics sandbox logic.

Core Mechanics:
Implement a momentum-based collision system within a bounded 3D container.

Requirements:

Initialize a Three.js scene with a physics world using Cannon.js.

Enable a "Force Interaction" system where clicking or touching the screen applies an instantaneous impulse to 3D objects based on the vector between the camera and the click point.

Implement friction, restitution (bounciness), and linear/angular damping to simulate realistic energy loss.

Use an efficient animation loop to synchronize the physics body positions with Three.js meshes.

Ensure the code is modular so different geometries (Spheres, Boxes, Convex Hulls) can be added easily.

Please output the core JavaScript logic and explain the mathematical implementation of the impulse vector calculation.

어떤 프롬프트인가

Senior WebGL Game Architect 역할을 맡겨 3D 물리 샌드박스 핵심 JavaScript를 설계하게 한다. 클릭 지점과 카메라 벡터로 impulse를 계산하는 수학 설명을 요구한다.

같은 분류의 프롬프트

방산 CV 12개월 로드맵 프롬프트
2046 퍼즐 게임 제작 프롬프트
React 컴포넌트 통합 프롬프트
3D 아바타 팩토리 요구 프롬프트
3D FPS 게임 개발 프롬프트