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
- 백준 c++ 2468번
- C#
- 백준 1103번 c++
- 17070번
- 코테
- 백준 2870번
- 백준
- dfs
- Beakjoon
- c++
- 백준 1103번
- 오브젝트 풀링
- Lv.3
- 코딩테스트
- Unity
- 2870번 수학숙제 c++
- 유니티
- 백준 c++ 2870번
- Lv2
- Algorithm
- 백준 17070번 c++
- 2870번
- 2468 c++
- 백준 17070번
- 수학숙제
- 2870번 c++
- 백준 1103번 게임
- 2870번 수학숙제
- 프로그래머스
- 플레이어 이동
Archives
- Today
- Total
주녘공부일지
[Unity] ForceMode(ForceMode2D) 본문
Force : 연속
- 현실적인 물리현상
Impulse : 연속 + 질량 무시
- 오브젝트의 질량에 관계없이 이동
Acceleration : 불연속
- 짧은 순간의 힘, 충돌, 폭발, 등에 사용
VelocityChange : 불연속 + 질량 무시
- 질량이 다른 여러 물체를 같은 속도로 이동시킬 때, 등에 사용
+ ForceMode2D에서는 위의 두개만 지원함
+ 연속이란, 연속적으로 힘을 가하는지 여부Fol
rigidR.AddForce(dirVecR.normallized * 4, ForceMode2D.Impulse);
rigidL.AddForce(dirVecL.normallized * 4, ForceMode2D.Impulse);
dirVecR과 dirVecL 방향으로 질량을 무시하는 연속적인 힘을 가함 ( 이동시킴 )
https://docs.unity3d.com/kr/530/ScriptReference/ForceMode.html
Unity - 스크립팅 API: ForceMode
Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. 닫기
docs.unity3d.com
'GameDevelopment > [Unity] Class, Pattern' 카테고리의 다른 글
[Unity] 모바일 터치 감지 방법 (0) | 2022.02.16 |
---|---|
[Unity] 오브젝트 풀링 (Object Pooling) (0) | 2022.02.01 |
[Unity] Prefab이란? (+ 불러오기) (0) | 2022.01.25 |
[Unity] BoxCollider2D (0) | 2022.01.18 |
[Unity] Rigidbody2D + 이동 (AddForce, Velocity) (0) | 2022.01.18 |