C# Class Gravitation.CameraControls.TwoPlayerCamera

Inheritance: Camera
显示文件 Open project: thedamoes/Gravitation

Public Methods

Method Description
updateCamera ( Vector2 shipPos, Vector2 shipPos2 ) : void

Private Methods

Method Description
applyZoom ( Vector2 player1Pos, Vector2 player2Pos, int smallestScreenDimention, float screenIncreaseFactor ) : void
findCenter ( Vector2 p1, Vector2 p2 ) : Vector2

Method Details

updateCamera() public method

public updateCamera ( Vector2 shipPos, Vector2 shipPos2 ) : void
shipPos Vector2
shipPos2 Vector2
return void