dogfootman.com

  • 홈
  • 태그
  • 방명록

교점 1

[Unity 2D] 아이소메트릭의 맵에서 카메라 범위 제한하기 (Constraining Camera Ranges in Isometric Maps)

개요아이소매트릭형태의 맵에서 카메라 범위를 제한  구현방법선1과 선2의 교점이 있을경우 카메라의 이동을 제한  선1= 카메라의 현재 위치와 이동할려고 하는 위치를 연결한 선선2= 맵의 경계선 (이미지의 Top 와 Right를 연결한 선)교점= 선1과 선2이 만나는 지점  0. 이동 방법은 기존에 작성한 스크립트 활용https://dogfootman.com/2 [Unity 2D] 드래그 카메라 이동 (drag camera move)1. 필요한 변수 선언 // 상수 : 이동 관련 private const float DirectionForceReduceRate = 0.935f; // 감속비율 private const float DirectionForceMin = 0.001f; // 설정치 이하일 경우 움직임을..

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바