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:
		| @@ -4222,6 +4222,10 @@ Game Types (bge.types) | ||||
|    .. attribute:: projection_matrix | ||||
|  | ||||
|       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]] | ||||
|  | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user