회원 로그인
|
![](http://dvframes.com/rb/_var/simbol/artsone.jpg)
PlayMaker - Cube 날리기
PlayMaker - Cube 날리기
![](http://dvframes.com/rb/files/2014/01/27/77cfb9cb3b083d13f24d6ec8469b3bbc000807.png)
![](http://dvframes.com/rb/files/2014/01/27/79f6ddf6c75fbe30cb8556e966778893000848.png)
![](http://dvframes.com/rb/files/2014/01/27/e3a2885759cf1437a9558338131a31bf000859.png)
![](http://dvframes.com/rb/files/2014/01/27/a5fba08a03df57a5f53180d1c57e8524000909.png)
![](http://dvframes.com/rb/files/2014/01/27/538e05530814412f91108bdde9f4ee1a000920.png)
![](http://dvframes.com/rb/files/2014/01/27/488f51ff40fefccbf0aaac99ed08aba9000941.png)
마우스 버튼을 큐브를 클릭하여 날리기
![](http://dvframes.com/rb/files/2014/01/27/77cfb9cb3b083d13f24d6ec8469b3bbc000807.png)
1. Plan과 Cube, Directional light 생성하여 배치한다.
Cube들에게 Component > Physics > Rigidbody 적용
![](http://dvframes.com/rb/files/2014/01/27/79f6ddf6c75fbe30cb8556e966778893000848.png)
2. Main Camera에 'button down' 상태 생성, FINISHED 이벤트 추가(1), 액션 Input > Get Mouse Button Down을 추가(2)한다.
(3)Get Mouse Button Down의 Button에 Left 선택,
Send Event에 FINISHED 선택
![](http://dvframes.com/rb/files/2014/01/27/e3a2885759cf1437a9558338131a31bf000859.png)
3. Cube 게임 오브젝트를 담을 변수 'clickCube' GameObject형을 생성한다.
![](http://dvframes.com/rb/files/2014/01/27/a5fba08a03df57a5f53180d1c57e8524000909.png)
4. 'select object' 상태 생성, FINISHED 이벤트 추가(1), 액션 Input > Mouse Pick을 추가(2)한다.
Mouse Pick의 Store Game Object에 변수 clickCube를 선택(3)
![](http://dvframes.com/rb/files/2014/01/27/538e05530814412f91108bdde9f4ee1a000920.png)
5. 'push cube' 상태 생성, FINISHED 이벤트 추가(1), 액션 Physics > Add Force를 추가(2)한다.
Add Force의 Game Object에 Specify Game Object 선택, clickedCube 변수를 선택(3)
방향에 맞게 힘의 강도를 설정(Z로 200)(4)
![](http://dvframes.com/rb/files/2014/01/27/488f51ff40fefccbf0aaac99ed08aba9000941.png)
6. 연결
결과
![](/rb/modules/bbs/theme/_pc/list01/image/ico_comment.gif)
146개(1/8페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
![]() |
유니티 강좌 모음(영문) | 푸딩뱃살 | 61745 | 2013.08.28 12:02 |
![]() |
유니티 경고, 에러 모음 (재정리 예정)
![]() |
푸딩뱃살 | 73186 | 2013.08.12 00:09 |
144 |
[콘솔] 오류 : ~ multicast group
![]() |
푸딩뱃살 | 1129 | 2019.09.04 00:23 |
143 |
[콘솔] 오류 : NullReferenceException
![]() |
푸딩뱃살 | 1142 | 2019.07.23 00:26 |
142 | [유니티] Unite Seoul 2019 다시보기 | 푸딩뱃살 | 1285 | 2019.06.28 10:00 |
141 | [정보] GDC 2019 유니티 키노트 하이라이트 | 푸딩뱃살 | 1390 | 2019.03.26 10:45 |
140 |
[유니티] Unite Seoul 2018 아젠다 & 세션 다시보기
![]() ![]() |
푸딩뱃살 | 2775 | 2018.05.25 10:32 |
139 |
[VR/AR] Stereo 360 Image and Video Capture
![]() ![]() |
푸딩뱃살 | 2067 | 2018.02.02 10:53 |
138 | [VR/AR] ARKit - Face Tracking | 푸딩뱃살 | 1811 | 2018.01.17 16:57 |
137 | [참고] ADAM :Making 참고 | 푸딩뱃살 | 2059 | 2017.12.04 11:14 |
136 |
[정보] ARKit Face Tracking on iPhone X
![]() |
푸딩뱃살 | 3170 | 2017.11.08 09:59 |
135 | [VR/AR] Vive Full Body Tracking Demo | 푸딩뱃살 | 2172 | 2017.10.31 18:54 |
134 |
[애셋] 유니티 모델링 - UModeler
![]() ![]() |
푸딩뱃살 | 2214 | 2017.10.20 14:02 |
133 |
[유니티] 맥에서 안드로이드/자바 SDK 경로
![]() ![]() |
푸딩뱃살 | 3358 | 2017.10.04 23:58 |
132 |
[콘솔] 오류 : Fatal Error! The project is on case sensitive file
![]() ![]() |
푸딩뱃살 | 2817 | 2017.10.01 19:59 |
131 | [참고] Adam (Made with Unity) | 푸딩뱃살 | 2537 | 2017.10.01 18:33 |
130 | [정보] 보안 패치 | 푸딩뱃살 | 1946 | 2017.08.21 15:59 |
129 |
[콘솔] 오류: Failed to load '.dll', ......
![]() |
푸딩뱃살 | 2129 | 2017.08.20 00:57 |
128 |
[콘솔] 오류: [VRDevice] Initialization of device oculus failed.
![]() |
푸딩뱃살 | 1970 | 2017.08.19 03:05 |
127 |
[콘솔] 오류: MissingComponentException
![]() |
푸딩뱃살 | 3002 | 2017.08.19 02:05 |
126 |
[콘솔] 오류: Android Manifests
![]() |
푸딩뱃살 | 2772 | 2017.08.18 03:01 |
125 | [VR/AR] Google VR SDK for Unity | 푸딩뱃살 | 3589 | 2017.08.18 00:10 |