Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- 회귀
- least square
- regression
- Overloading
- call by reference
- 비선형 함수
- Linear Regression
- virtual function
- Class
- local minimum
- 머신러닝
- c++
- call by value
- 맵리듀스
- MapReduce
- Effective C++
- inheritance
- 최소제곱법
- 지도학습
- Nonlinear Model
- 선형모델
- overriding
- kubernetes
- 회귀학습
- 딥러닝
- member function
- 비선형모델
- struct
- Machine learning
- Nonlinear Function
Archives
- Today
- Total
J's Study log
[Unity] Input keys 본문
Input.GetKeyDown(KeyCode.---) - Will happen once when you hit the key
Input.GetKey(KeyCode.---) - Will continue to happen while you are holding the key
Input.GetKeyUp(KeyCode.---) - Will happen once when you release the key
We can use it like this
If you put this code in Update() function the object can jump now.
When user hit Space Key, the Input.GetKeyDown in the picture becomes true value, so the if statement works.
By AddForce(x,y,z,mode) function it also uses Vector3 as value so in the picture the function contains Vector3.up value to move upward.
'Computer Language > Unity' 카테고리의 다른 글
[Unity] Parents and Child Object (0) | 2019.02.27 |
---|---|
[Unity] Input Mouse Button (0) | 2019.02.27 |
[Unity] Input Arrow Keys (0) | 2019.02.25 |
[Unity] Camera Work (0) | 2019.02.25 |
[Unity] GetComponent (0) | 2019.02.23 |
Comments