Checks if this Face is within the view of the given Camera.
This method is called in the MeshWebGLRenderer
function. It performs the following tasks:
First, the Vertex.update
method is called on each of the vertices. This populates them
with the new translated values, updating their tx
, ty
and ta
properties.
Then it tests to see if this face is visible due to the alpha values, if not, it returns.
After this, if hideCCW
is set, it calls isCounterClockwise
and returns if not.
Finally, it will update the Face.bounds
based on the newly translated vertex values
and return the results of an intersection test between the bounds and the camera world view
rectangle.
name | type | description |
---|---|---|
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to check against. |
hideCCW | boolean |
Test the counter-clockwise orientation of the verts? |
z | number |
The Cameras z position, used in the CCW test. |
alpha | number |
The alpha of the parent object. |
a | number |
The parent transform matrix data a component. |
b | number |
The parent transform matrix data b component. |
c | number |
The parent transform matrix data c component. |
d | number |
The parent transform matrix data d component. |
e | number |
The parent transform matrix data e component. |
f | number |
The parent transform matrix data f component. |
roundPixels | boolean |
Round the vertex position or not? |
true
if this Face can be seen by the Camera.