Adding a note to KX_Camera.projection_matrix and KX_Camera.modelview_matrix to warn that both values are the identity matrix prior to the first frame of rendering. Both values are calculated when rendering, which is after Python scripts have a chance to run on frame 1.

This commit is contained in:
Mitchell Stokes 2012-07-07 06:42:44 +00:00
parent 84bf3e48c0
commit d77e658c91

@ -4223,6 +4223,10 @@ Game Types (bge.types)
This camera's 4x4 projection matrix.
.. note::
This is the identity matrix prior to rendering the first frame (any Python done on frame 1).
:type: 4x4 Matrix [[float]]
.. attribute:: modelview_matrix
@ -4233,7 +4237,7 @@ Game Types (bge.types)
.. note::
This matrix is regenerated every frame from the camera's position and orientation.
This matrix is regenerated every frame from the camera's position and orientation. Also, this is the identity matrix prior to rendering the first frame (any Python done on frame 1).
.. attribute:: camera_to_world