C# Class Prime31.SpriteLightKitLightManager

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: prime31/SpriteLightKit Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
Awake ( ) : void

Method Details

getAffectedAverageLightPos() public method

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
return UnityEngine.Vector3

sqrDistanceBetweenVectors() public method

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