File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 769769 {
770770 "type" : " Vector2" ,
771771 "name" : " offset" ,
772- "description" : " Camera offset (displacement from target )"
772+ "description" : " Camera offset (screen space offset from window origin )"
773773 },
774774 {
775775 "type" : " Vector2" ,
776776 "name" : " target" ,
777- "description" : " Camera target (rotation and zoom origin )"
777+ "description" : " Camera target (world space target point that is mapped to screen space offset )"
778778 },
779779 {
780780 "type" : " float" ,
781781 "name" : " rotation" ,
782- "description" : " Camera rotation in degrees"
782+ "description" : " Camera rotation in degrees (pivots around target) "
783783 },
784784 {
785785 "type" : " float" ,
786786 "name" : " zoom" ,
787- "description" : " Camera zoom (scaling), should be 1.0f by default "
787+ "description" : " Camera zoom (scaling around target ), must not be set to 0, set to 1.0f for no scale "
788788 }
789789 ]
790790 },
Original file line number Diff line number Diff line change @@ -769,22 +769,22 @@ return {
769769 {
770770 type = " Vector2" ,
771771 name = " offset" ,
772- description = " Camera offset (displacement from target )"
772+ description = " Camera offset (screen space offset from window origin )"
773773 },
774774 {
775775 type = " Vector2" ,
776776 name = " target" ,
777- description = " Camera target (rotation and zoom origin )"
777+ description = " Camera target (world space target point that is mapped to screen space offset )"
778778 },
779779 {
780780 type = " float" ,
781781 name = " rotation" ,
782- description = " Camera rotation in degrees"
782+ description = " Camera rotation in degrees (pivots around target) "
783783 },
784784 {
785785 type = " float" ,
786786 name = " zoom" ,
787- description = " Camera zoom (scaling), should be 1.0f by default "
787+ description = " Camera zoom (scaling around target ), must not be set to 0, set to 1.0f for no scale "
788788 }
789789 }
790790 },
Original file line number Diff line number Diff line change @@ -399,10 +399,10 @@ Struct 13: Camera3D (5 fields)
399399Struct 14: Camera2D (4 fields)
400400 Name: Camera2D
401401 Description: Camera2D, defines position/orientation in 2d space
402- Field[1]: Vector2 offset // Camera offset (displacement from target )
403- Field[2]: Vector2 target // Camera target (rotation and zoom origin )
404- Field[3]: float rotation // Camera rotation in degrees
405- Field[4]: float zoom // Camera zoom (scaling), should be 1.0f by default
402+ Field[1]: Vector2 offset // Camera offset (screen space offset from window origin )
403+ Field[2]: Vector2 target // Camera target (world space target point that is mapped to screen space offset )
404+ Field[3]: float rotation // Camera rotation in degrees (pivots around target)
405+ Field[4]: float zoom // Camera zoom (scaling around target ), must not be set to 0, set to 1.0f for no scale
406406Struct 15: Mesh (17 fields)
407407 Name: Mesh
408408 Description: Mesh, vertex data and vao/vbo
Original file line number Diff line number Diff line change 155155 <Field type =" int" name =" projection" desc =" Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" />
156156 </Struct >
157157 <Struct name =" Camera2D" fieldCount =" 4" desc =" Camera2D, defines position/orientation in 2d space" >
158- <Field type =" Vector2" name =" offset" desc =" Camera offset (displacement from target )" />
159- <Field type =" Vector2" name =" target" desc =" Camera target (rotation and zoom origin )" />
160- <Field type =" float" name =" rotation" desc =" Camera rotation in degrees" />
161- <Field type =" float" name =" zoom" desc =" Camera zoom (scaling), should be 1.0f by default " />
158+ <Field type =" Vector2" name =" offset" desc =" Camera offset (screen space offset from window origin )" />
159+ <Field type =" Vector2" name =" target" desc =" Camera target (world space target point that is mapped to screen space offset )" />
160+ <Field type =" float" name =" rotation" desc =" Camera rotation in degrees (pivots around target) " />
161+ <Field type =" float" name =" zoom" desc =" Camera zoom (scaling around target ), must not be set to 0, set to 1.0f for no scale " />
162162 </Struct >
163163 <Struct name =" Mesh" fieldCount =" 17" desc =" Mesh, vertex data and vao/vbo" >
164164 <Field type =" int" name =" vertexCount" desc =" Number of vertices stored in arrays" />
You can’t perform that action at this time.
0 commit comments