Class: InCamera

Phaser.Component. InCamera

new InCamera()

The InCamera component checks if the Game Object intersects with the Game Camera.

src/gameobjects/components/InCamera.js line 12


<readonly> inCamera : boolean

Checks if this Game Objects bounds intersects with the Game Cameras bounds.

It will be true if they intersect, or false if the Game Object is fully outside of the Cameras bounds.

An object outside the bounds can be considered for camera culling if it has the AutoCull component.

  • boolean
src/gameobjects/components/InCamera.js line 26

phaser-ce@2.20.0 is on GitHub and NPM

Documentation generated by JSDoc 3.6.7 on 2022-12-10 using Tomorrow.