mirror of
https://github.com/photonstorm/phaser
synced 2024-09-20 22:41:54 +00:00
Updated scroll factor docs to clarify impact on physics bodies #3810
This commit is contained in:
parent
f70b4f89b1
commit
0eef6f1bb9
2 changed files with 16 additions and 1 deletions
|
@ -190,7 +190,7 @@ Setting the `resolution` property in the Game Config to a value other than 1 wou
|
|||
|
||||
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
|
||||
|
||||
@SBCGames @rgk @rook2pawn @robbintt @bguyl @halilcakarr @PhaserEditor2D @Edwin222 @tfelix @Yudikubota @hexus @guzmonne @ampled @thanh-taro @dcbriccetti @Dreaded-Gnu @padme-amidala @rootasjey @ampled @thejonanshow @polarstoat
|
||||
@SBCGames @rgk @rook2pawn @robbintt @bguyl @halilcakarr @PhaserEditor2D @Edwin222 @tfelix @Yudikubota @hexus @guzmonne @ampled @thanh-taro @dcbriccetti @Dreaded-Gnu @padme-amidala @rootasjey @ampled @thejonanshow @polarstoat @jdjoshuadavison
|
||||
|
||||
Thanks to @khaleb85 for fixing the super-annoying lag on the API Docs pages when it hung the browser while indexing the search field.
|
||||
|
||||
|
|
|
@ -24,6 +24,11 @@ var ScrollFactor = {
|
|||
* A value of 1 means it will move exactly in sync with a camera.
|
||||
* A value of 0 means it will not move at all, even if the camera moves.
|
||||
* Other values control the degree to which the camera movement is mapped to this Game Object.
|
||||
*
|
||||
* Please be aware that scroll factor values other than 1 are not taken in to consideration when
|
||||
* calculating physics collisions. Bodies always collide based on their world position, but changing
|
||||
* the scroll factor is a visual adjustment to where the textures are rendered, which can offset
|
||||
* them from physics bodies if not accounted for in your code.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ScrollFactor#scrollFactorX
|
||||
* @type {number}
|
||||
|
@ -43,6 +48,11 @@ var ScrollFactor = {
|
|||
* A value of 1 means it will move exactly in sync with a camera.
|
||||
* A value of 0 means it will not move at all, even if the camera moves.
|
||||
* Other values control the degree to which the camera movement is mapped to this Game Object.
|
||||
*
|
||||
* Please be aware that scroll factor values other than 1 are not taken in to consideration when
|
||||
* calculating physics collisions. Bodies always collide based on their world position, but changing
|
||||
* the scroll factor is a visual adjustment to where the textures are rendered, which can offset
|
||||
* them from physics bodies if not accounted for in your code.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ScrollFactor#scrollFactorY
|
||||
* @type {number}
|
||||
|
@ -62,6 +72,11 @@ var ScrollFactor = {
|
|||
* A value of 1 means it will move exactly in sync with a camera.
|
||||
* A value of 0 means it will not move at all, even if the camera moves.
|
||||
* Other values control the degree to which the camera movement is mapped to this Game Object.
|
||||
*
|
||||
* Please be aware that scroll factor values other than 1 are not taken in to consideration when
|
||||
* calculating physics collisions. Bodies always collide based on their world position, but changing
|
||||
* the scroll factor is a visual adjustment to where the textures are rendered, which can offset
|
||||
* them from physics bodies if not accounted for in your code.
|
||||
*
|
||||
* @method Phaser.GameObjects.Components.ScrollFactor#setScrollFactor
|
||||
* @since 3.0.0
|
||||
|
|
Loading…
Reference in a new issue