| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- 스토어드 프로시저
- Stored Procedure
- Two Points
- binary search
- Hash
- two pointer
- Dijkstra
- String
- DP
- 이진탐색
- MYSQL
- Trie
- union find
- 다익스트라
- Brute Force
- SQL
- 그래프
Archives
- Today
- Total
codingfarm
이동 본문
트랜스 폼
|
1
2
3
4
5
6
7
8
9
10
|
Vector3 velocity;
public void Move(Vector3 _velocity) {
velocity = _velocity;
}
public void Update() {
transform.Translate(velocity * Time.deltaTime);
}
|
cs |
물리엔진
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Vector3 velocity;
Rigidbody myRigidbody;
void Start() {
myRigidbody = GetComponent<Rigidbody> ();
}
public void Move(Vector3 _velocity) {
velocity = _velocity;
}
public void FiedxUpdate() {
myRigidbody.MovePosition(myRigidbody.position + velocity * Time.fixedDeltaTime);
}
|
cs |
Comments