C# 클래스 Prime31.SpriteLightKitLightManager

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: prime31/SpriteLightKit 1 사용 예제들

공개 메소드들

메소드 설명
getAffectedAverageLightPos ( Vector3 position, float maxSqrDistance ) : Vector3

returns the weighted average position of any lights within range or the original position passed in if everything is further than maxDistance

sqrDistanceBetweenVectors ( Vector3 a, Vector3 b ) : float

비공개 메소드들

메소드 설명
Awake ( ) : void

메소드 상세

getAffectedAverageLightPos() 공개 메소드

returns the weighted average position of any lights within range or the original position passed in if everything is further than maxDistance
public getAffectedAverageLightPos ( Vector3 position, float maxSqrDistance ) : Vector3
position UnityEngine.Vector3 Position.
maxSqrDistance float
리턴 UnityEngine.Vector3

sqrDistanceBetweenVectors() 공개 메소드

public sqrDistanceBetweenVectors ( Vector3 a, Vector3 b ) : float
a UnityEngine.Vector3
b UnityEngine.Vector3
리턴 float