Bläddra i källkod

Added new camera properties

Björn Ritzl 2 år sedan
förälder
incheckning
ff846ab172
2 ändrade filer med 10 tillägg och 1 borttagningar
  1. 9 0
      docs/en/manuals/camera.md
  2. 1 1
      docs/en/manuals/physics-objects.md

+ 9 - 0
docs/en/manuals/camera.md

@@ -149,6 +149,15 @@ A camera has a number of different properties that can be manipulated using `go.
 `orthographic_zoom`
 : The orthographic camera zoom (`number`).
 
+`aspect_ratio`
+: Added in Defold 1.4.8. The ratio between the frustum width and height. Used when calculating the projection of a perspective camera. (`number`).
+
+`view`
+: Added in Defold 1.4.8. The calculated view matrix of the camera. READ ONLY. (`matrix4`).
+
+`projection`
+: Added in Defold 1.4.8. The calculated projection matrix of the camera. READ ONLY. (`matrix4`).
+
 
 ## Third-party camera solutions
 

+ 1 - 1
docs/en/manuals/physics-objects.md

@@ -110,4 +110,4 @@ A physics object has a number of different properties that can be read and chang
 : The current linear velocity of the collision object component (`vector3`). [API reference](/ref/physics/#linear_velocity).
 
 `mass`
-: The defined physical mass of the collision object component (`number`). [API reference](/ref/physics/#mass).
+: The defined physical mass of the collision object component. READ ONLY. (`number`). [API reference](/ref/physics/#mass).