C# Class ScreenRegion, swip3

Inheritance: MonoBehaviour
Datei anzeigen Open project: unit9/swip3 Class Usage Examples

Public Methods

Method Description
ClampToScreenRegion ( Vector3 aimPos, Vector3 &clampedPos, Vector3 &clampedDirection ) : float

Clamps a transform to this screen region and rotates it to face the aimPos

Update ( ) : void

Private Methods

Method Description
OnDrawGizmos ( ) : void
Start ( ) : void

Method Details

ClampToScreenRegion() public method

Clamps a transform to this screen region and rotates it to face the aimPos
public ClampToScreenRegion ( Vector3 aimPos, Vector3 &clampedPos, Vector3 &clampedDirection ) : float
aimPos Vector3 Aim position.
clampedPos Vector3
clampedDirection Vector3
return float

Update() public method

public Update ( ) : void
return void