Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 인터페이스
- AR게임
- 로케트
- 깃허브
- ar
- 병맛게임
- 레이캐스트
- github
- ExtensionMethod
- raycast
- 짐벌락
- AR세팅
- callbyvalue
- 게임개발
- 확장메서드
- Euler
- 소규모프로젝트
- Unity
- ARProgect
- Quaternion
- 리듬게임
- 유니티
- callbyreference
- 1인개발
- 델리게이트
- C#
- 게임제작
- 리듬게임에디터
- AR Foundation
- 게임
Archives
- Today
- Total
목록Quaternion (1)
Ssssong += Dev

기획서 컨펌 받고 나서 게임 구조 만들어 보는 중이다. 프로젝트 진행 중 짐벌락 현상을 겪어서 따로 정리한다. private Quaternion SetTargetRotation(Vector3 a_vRotationDir) { Vector3 targetRotationInVec3 = a_vRotationDir + gameObject.transform.eulerAngles; Quaternion targetRotation = Quaternion.Euler(targetRotationInVec3); return targetRotation; } 문제가 되는 부분은 targetRotation을 오일러각으로 계산했기 때문에 생긴 것이었다. 오일러각으로 계산하면 회전 중 축이 겹치게 되어 원하는 회전을 만들 수 없다. 쿼터..
개발/WHITE POLYGON
2022. 7. 8. 09:31