게임 물리 메커니즘 설계
게임 내 특정 물리 로직의 수식, 상태 머신, 구현 코드를 한 번에 설계합니다.
- 추천 툴
- 공통AI 분류
- 쓰인 기법
- 역할 부여 · 제약 조건 · 출력 형식 지정
프롬프트 원문
I want you to act as a Game Physics Logic Architect. I will provide you with a specific gameplay mechanic idea, and you will output the complete technical implementation logic. This includes the mathematical formulas (using LaTeX for physics calculations), the state machine transition diagram (in Markdown), and a production-ready code snippet in the language I specify (default is C# for Unity). Do not provide world-building, lore, or NPC dialogue. Focus entirely on collision detection, momentum conservation, and input-to-response latency optimization. My first request is: "Implement a grapple hook mechanic where the rope has elastic tension and allows the player to swing with centrifugal force."
한국어 풀이 보기(참고용)
게임 물리 로직 아키텍트 역할을 맡아주세요. 제가 특정 게임플레이 메커니즘 아이디어를 제공하면, 완전한 기술적 구현 로직을 출력해야 합니다. 여기에는 수식(물리 계산용 LaTeX 사용), 상태 머신 전이 다이어그램(Markdown 사용), 그리고 지정한 언어(기본값은 Unity용 C#)의 프로덕션 수준 코드 스니펫이 포함됩니다. 세계관, 배경설정, NPC 대사 등은 작성하지 마세요. 충돌 감지, 운동량 보존, 입력-응답 지연 시간 최적화에 전적으로 집중해 주세요. 첫 번째 요청은 다음과 같습니다: "줄에 탄성 장력이 있고 플레이어가 원심력으로 스윙할 수 있는 그래플링 훅 메커니즘을 구현하세요."
- 활용언어나 엔진(C#, C++, Unreal 등)을 지시문 끝에 명시해 보세요.
- 활용물리 공식과 상태 전이도를 한눈에 파악해 로직 오류를 방지할 수 있습니다.
출처 · prompts.chat · Act as a Game Physics Architect — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
텍스트 결과
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
실행 입력값 보기
I want you to act as a Game Physics Logic Architect. I will provide you with a specific gameplay mechanic idea, and you will output the complete technical implementation logic. This includes the mathematical formulas (using LaTeX for physics calculations), the state machine transition diagram (in Markdown), and a production-ready code snippet in the language I specify (default is C# for Unity). Do not provide world-building, lore, or NPC dialogue. Focus entirely on collision detection, momentum conservation, and input-to-response latency optimization. My first request is: "Implement a grapple hook mechanic where the rope has elastic tension and allows the player to swing with centrifugal force."
1. 물리 수학 공식 (LaTeX)
- 탄성 장력 및 감쇠력 (Hooke's Law with Damping):
$$F_{rope} = -k (||\mathbf{r}|| - l_0) \hat{\mathbf{r}} - d (\mathbf{v} \cdot \hat{\mathbf{r}}) \hat{\mathbf{r}}$$
($k$: 탄성계수, $l_0$: 로프 기본길이, $d$: 감쇠계수, $\hat{\mathbf{r}}$: 앵커 방향 단위벡터)
- 원심력 (Centrifugal Force):
$$F_{centrifugal} = m \frac{v_{\theta}^2}{||\mathbf{r}||} \hat{\mathbf{r}}$$
2. 상태 머신 (State Machine)
[Normal State] --(Input Down & Raycast Hit)--> [Hook Launching] [Hook Launching] --(Attach To Target)--> [Swinging (Elastic Physics)] [Swinging] --(Input Up / Disconnect)--> [Airborne (Momentum Preserved)]
3. Unity C# 구현 예시
using UnityEngine;
public class ElasticGrapple : MonoBehaviour {
[SerializeField] private Rigidbody rb;
public Vector3 anchorPoint;
public float restLength = 8f, springK = 200f, damping = 15f;
public bool isGrappling;
void FixedUpdate() {
if (!isGrappling) return;
Vector3 dir = transform.position - anchorPoint;
float currentLength = dir.magnitude;
if (currentLength > restLength) {
Vector3 normDir = dir.normalized;
float delta = currentLength - restLength;
float springForce = delta * springK;
float dampingForce = Vector3.Dot(rb.velocity, normDir) * damping;
Vector3 totalForce = -normDir * (springForce + dampingForce);
rb.AddForce(totalForce, ForceMode.Force);
}
}
}hotpick 개선안
원문을 더 잘 동작하게 고쳐 쓴 프롬프트
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
원문의 문제 → 개선안에서 고친 점
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as a Game Physics Logic Architect. I will provide a gameplay mechanic idea, and you wi
입력 칸레슨 05 배우기 ›
원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.
개선 · 1개[Specify Language/Engine, default: C# for Unity]
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 3단계
고친 이유 (개선안을 만든 AI 의 설명)
- 1출력 형식을 체계적인 섹션별로 구체화
- 2엣지 케이스 및 세부 물리 모델 요구사항 추가
- 3유연한 지정을 위해 언어/엔진 대괄호 변수화
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
원문
I want you to act as a Game Physics Logic Architect. I will provide you with a specific gameplay mechanic idea, and you will output the complete technical implementation logic. This includes the mathematical formulas (using LaTeX for physics calculations), the state machine transition diagram (in Markdown), and a production-ready code snippet in the language I specify (default is C# for Unity). Do not provide world-building, lore, or NPC dialogue. Focus entirely on collision detection, momentum conservation, and input-to-response latency optimization. My first request is: "Implement a grapple hook mechanic where the rope has elastic tension and allows the player to swing with centrifugal force."
개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as a Game Physics Logic Architect. I will provide a gameplay mechanic idea, and you will output a complete, production-ready technical specification. ### Output Requirements: 1. **Mathematical & Physics Foundation**: LaTeX formulas for motion, collision detection, elastic tension, and momentum conservation. 2. **State Machine**: A clear Markdown state transition diagram (including Entry, Active, Edge-cases, and Exit states). 3. **Technical Implementation**: Production-ready code in [Specify Language/Engine, default: C# for Unity] optimized for low input-to-response latency. ### Constraints: - Absolutely no world-building, lore, or audio/visual design. - Focus purely on vector mathematics, force integration, and edge-case handling (e.g., clipping, max tension limits). My first request is: "Implement a grapple hook mechanic where the rope has elastic tension (Hooke's Law with damping) and allows swinging driven by centrifugal force and player directional input."
같은 분야 프롬프트 코딩 · 개발
더 보기 ›- 텍스트 결과
코딩 · 개발 · Claude Code
전체 코드 버그 종합 분석
프로젝트 코드 전체의 보안 취약점과 로직 오류를 체계적으로 분석하고 수정 보고서를 만듭니다.
기법 · 역할 부여 · 단계별 사고 · 출력 형식 지정
- 텍스트 결과
코딩 · 개발 · Claude Code
레트로 게임 AI 코딩 연출
AI로 웹 게임 개발 시 불필요한 텍스트 연출을 막고 레트로 사운드와 UI를 깔끔하게 구현합니다.
기법 · 네가티브 제약
- 웹 화면(HTML)텍스트 결과
코딩 · 개발 · 공통
공장 AI HMI 시뮬레이터 제작
공장 작업자의 AI 시스템 대응 교육용 단일 HTML 웹 HMI 시뮬레이터를 즉시 구축할 때 활용합니다.
기법 · 역할 부여 · 단계별 지시 · 출력 형식 지정