'2014/07/22'에 해당되는 글 1건
- 2014.07.22 카메라 부드럽게 움직이는 스크립트
static float SmoothDamp(float current,
float target,
float currentVelocity,
float smoothTime,
float maxSpeed = Mathf.Infinity,
float deltaTime = Time.deltaTime);
Parameters
| current | The current position. |
| target | The position we are trying to reach. |
| currentVelocity | The current velocity, this value is modified by the function every time you call it. |
| smoothTime | Approximately the time it will take to reach the target. A smaller value will reach the target faster. |
| maxSpeed | Optionally allows you to clamp the maximum speed. |
| deltaTime | The time since the last call to this function. By default Time.deltaTime. |
시간내(smoothTime)에 정해진 목표(target)로 이동한다.(반환값)
이동할때의 속도도 currentVelocity 값으로 알수있다.(ref 로 넘겨줌)
'유니티 > 스크립트' 카테고리의 다른 글
| 유니티 플러그인 적용 (0) | 2014.08.11 |
|---|---|
| baas.io 유니티 유저 정보 입력 및 받아오기. (0) | 2014.08.08 |
| 카메라 부드럽게 움직이는 스크립트 (0) | 2014.07.22 |
| 유니티 3.5.7 버전 설치하기. (0) | 2014.07.02 |
| 유니티 2D 스파라이트 이미지 변경하기 (0) | 2014.06.12 |
| 라인 렌더러 사용하기(게임 내 레이저 효과) (0) | 2014.06.10 |
Trackback 0 And
Comment 0


