일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Two Points
- union find
- 이진탐색
- String
- Brute Force
- DP
- 다익스트라
- binary search
- MYSQL
- two pointer
- Hash
- 그래프
- Stored Procedure
- Trie
- 스토어드 프로시저
- SQL
- Dijkstra
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