C# Class SpringFollowCamera, unity-network-sample

Inheritance: MonoBehaviour
Exibir arquivo Open project: anchan828/unity-network-sample

Public Properties

Property Type Description
clampHeadPositionScreenSpace float
distance float
height float
lineOfSightMask LayerMask
maxSpeed float
smoothLag float
snapLag float
target Transform

Public Methods

Method Description
Apply ( Transform dummyTarget, Vector3 dummyCenter ) : void
ApplyPositionDamping ( Vector3 targetCenter ) : void
ApplySnapping ( Vector3 targetCenter ) : void
Awake ( ) : void
DidChangeTarget ( ) : void
LateUpdate ( ) : void
SetTarget ( Transform t ) : void
SetUpRotation ( Vector3 centerPos, Vector3 headPos ) : void

Private Methods

Method Description
AdjustLineOfSight ( Vector3 newPosition, Vector3 target ) : Vector3
AngleDistance ( float a, float b ) : float
GetCenterOffset ( ) : Vector3

Method Details

Apply() public method

public Apply ( Transform dummyTarget, Vector3 dummyCenter ) : void
dummyTarget Transform
dummyCenter Vector3
return void

ApplyPositionDamping() public method

public ApplyPositionDamping ( Vector3 targetCenter ) : void
targetCenter Vector3
return void

ApplySnapping() public method

public ApplySnapping ( Vector3 targetCenter ) : void
targetCenter Vector3
return void

Awake() public method

public Awake ( ) : void
return void

DidChangeTarget() public method

public DidChangeTarget ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

SetTarget() public method

public SetTarget ( Transform t ) : void
t Transform
return void

SetUpRotation() public method

public SetUpRotation ( Vector3 centerPos, Vector3 headPos ) : void
centerPos Vector3
headPos Vector3
return void

Property Details

clampHeadPositionScreenSpace public_oe property

public float clampHeadPositionScreenSpace
return float

distance public_oe property

public float distance
return float

height public_oe property

public float height
return float

lineOfSightMask public_oe property

public LayerMask lineOfSightMask
return LayerMask

maxSpeed public_oe property

public float maxSpeed
return float

smoothLag public_oe property

public float smoothLag
return float

snapLag public_oe property

public float snapLag
return float

target public_oe property

public Transform target
return Transform