Rachel
Toggle table of contents
3.6.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.game.core
/
love.yinlin.compose.game.viewport
/
Camera
Camera
@
Stable
class
Camera
Members
Types
Config
Link copied to clipboard
@
Stable
data
class
Config
(
val
moveSmoothness
:
Float
=
0.005f
,
val
scaleSmoothness
:
Float
=
0.008f
)
Properties
position
Link copied to clipboard
var
position
:
Offset
相机位置
scale
Link copied to clipboard
var
scale
:
Float
相机缩放
viewport
Bounds
Link copied to clipboard
var
viewportBounds
:
Rect
视口边界
viewport
Bound
Size
Link copied to clipboard
var
viewportBoundSize
:
Size
视口边界大小
viewport
Size
Link copied to clipboard
var
viewportSize
:
Size
视口大小
Functions
animate
Update
Position
Link copied to clipboard
fun
animateUpdatePosition
(
newPosition
:
Offset
)
缓动更新位置
animate
Update
Scale
Link copied to clipboard
fun
animateUpdateScale
(
newScale
:
Float
)
缓动更新缩放
update
Position
Link copied to clipboard
fun
updatePosition
(
newPosition
:
Offset
)
更新相机位置
update
Scale
Link copied to clipboard
fun
updateScale
(
newScale
:
Float
)
更新相机缩放