Component.InCamera

Class: Phaser.Component.InCamera

Constructor

new InCamera()

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

Source code: gameobjects/components/InCamera.js (Line 12)

Public Properties

[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.

Source code: gameobjects/components/InCamera.js (Line 26)

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Component.InCamera.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部