dogfootman.com

  • 홈
  • 태그
  • 방명록

카메라이동 1

[Unity 2D] 드래그 카메라 이동 (drag camera move)

1. 필요한 변수 선언 // 상수 : 이동 관련 private const float DirectionForceReduceRate = 0.935f; // 감속비율 private const float DirectionForceMin = 0.001f; // 설정치 이하일 경우 움직임을 멈춤 // 변수 : 이동 관련 private bool _userMoveInput; // 현재 조작을 하고있는지 확인을 위한 변수 private Vector3 _startPosition; // 입력 시작 위치를 기억 private Vector3 _directionForce; // 조작을 멈췄을때 서서히 감속하면서 이동 시키기 위한 변수 // 컴포넌트 private Camera _camera; 2. Start 함수에서 카메라 컴포넌..

[Unity]/[Unity 2D] 2023.07.22
이전
1
다음
더보기
  • View All Categories (13)
    • [Unity] (3)
      • [Unity 2D] (3)
    • [Go] (9)
    • [ETC] (1)

Tag

API, cycle not allowed, Camera, pre-request script, benchmark, Unity, deep copy, Slice, Performance, scroll wheel, test, go, mouse position, Interface, Unity 2D, Dependency, struct, 고랭, Golang, gob,

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바