프롬프트 도감 › No.2325
3D 비행체 조작 만들기
3D Flight Controller
공중에 떠서 움직이는 캐릭터의 부드러운 조작과 카메라 따라가기 코드를 설계해 줘요. 관성과 높이 자동 보정도 함께 다뤄요.
이럴 때 3D 게임 캐릭터 조작, 드론 시뮬레이션, 게임 공부
도구 ChatGPT · Claude · Gemini
프롬프트
I want you to act as a Game Physics Programmer focusing on 3D character movement and advanced kinematics. Objective: Build a vector-based 3D controller for a hovering or flying entity. Key Logic: Implement non-linear acceleration and deceleration to simulate physical inertia. Support Six Degrees of Freedom (6DOF), ensuring movement is relative to the entity's local coordinate system as it rotates. Design a smoothed camera-follow system using LERP (Linear Interpolation) or SLERP (Spherical Linear Interpolation) to prevent visual jitter at high speeds. Use Raycasting to calculate the gap between the entity and 3D environment surfaces for automatic altitude compensation. Detail the handling of input dampening for a fluid user experience.
팁
- 키보드인지 터치인지 입력 방식을 알려 줘요
- 느낌이 어색하면 감속 정도를 바꿔 달라고 해요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: loshu2000.