프로퍼티 | 타입 | 설명 | |
---|---|---|---|
farClipPlane3D | float | ||
nearClipPlane3D | float | ||
positionZ3D | float |
메소드 | 설명 | |
---|---|---|
Camera ( ) : System | ||
forceMatrixUpdate ( ) : void |
this forces the matrix and bounds dirty
|
|
onEntityTransformChanged ( |
||
screenToWorldPoint ( Point screenPosition ) : Vector2 |
converts a point from screen coordinates to world
|
|
screenToWorldPoint ( Vector2 screenPosition ) : Vector2 |
converts a point from screen coordinates to world
|
|
setMaximumZoom ( float maxZoom ) : |
maximum non-scaled value (0 - float.Max) that the camera zoom can be. Defaults to 3
|
|
setMinimumZoom ( float minZoom ) : |
minimum non-scaled value (0 - float.Max) that the camera zoom can be. Defaults to 0.3
|
|
setPosition ( Vector2 position ) : |
shortcut to entity.transform.setPosition
|
|
setRotation ( float radians ) : |
shortcut to entity.transform.setRotation
|
|
setRotationDegrees ( float degrees ) : |
shortcut to entity.transform.setRotationDegrees
|
|
setZoom ( float zoom ) : |
sets the the zoom value which should be between -1 and 1. This value is then translated to be from minimumZoom to maximumZoom. This lets you set appropriate minimum/maximum values then use a more intuitive -1 to 1 mapping to change the zoom.
|
|
worldToScreenPoint ( Vector2 worldPosition ) : Vector2 |
converts a point from world coordinates to screen
|
|
zoomIn ( float deltaZoom ) : void | ||
zoomOut ( float deltaZoom ) : void |
메소드 | 설명 | |
---|---|---|
updateMatrixes ( ) : void |
메소드 | 설명 | |
---|---|---|
onSceneRenderTargetSizeChanged ( int newWidth, int newHeight ) : void |
when the scene render target size changes we update the cameras origin and adjust the position to keep it where it was
|
public onEntityTransformChanged ( |
||
comp | ||
리턴 | void |
public screenToWorldPoint ( Point screenPosition ) : Vector2 | ||
screenPosition | Point | Screen position. |
리턴 | Vector2 |
public screenToWorldPoint ( Vector2 screenPosition ) : Vector2 | ||
screenPosition | Vector2 | Screen position. |
리턴 | Vector2 |
public setMaximumZoom ( float maxZoom ) : |
||
maxZoom | float | Max zoom. |
리턴 |
public setRotationDegrees ( float degrees ) : |
||
degrees | float | Degrees. |
리턴 |
public worldToScreenPoint ( Vector2 worldPosition ) : Vector2 | ||
worldPosition | Vector2 | World position. |
리턴 | Vector2 |