@@ -3644,19 +3644,14 @@ return {
3644
3644
}
3645
3645
},
3646
3646
{
3647
- name = " GetCameraMatrix" ,
3648
- description = " Get camera transform matrix (view matrix)" ,
3649
- returnType = " Matrix" ,
3650
- params = {
3651
- {type = " Camera" , name = " camera" }
3652
- }
3653
- },
3654
- {
3655
- name = " GetCameraMatrix2D" ,
3656
- description = " Get camera 2d transform matrix" ,
3657
- returnType = " Matrix" ,
3647
+ name = " GetViewRay" ,
3648
+ description = " Get a ray trace from mouse position in a viewport" ,
3649
+ returnType = " Ray" ,
3658
3650
params = {
3659
- {type = " Camera2D" , name = " camera" }
3651
+ {type = " Vector2" , name = " mousePosition" },
3652
+ {type = " Camera" , name = " camera" },
3653
+ {type = " float" , name = " width" },
3654
+ {type = " float" , name = " height" }
3660
3655
}
3661
3656
},
3662
3657
{
@@ -3668,15 +3663,6 @@ return {
3668
3663
{type = " Camera" , name = " camera" }
3669
3664
}
3670
3665
},
3671
- {
3672
- name = " GetScreenToWorld2D" ,
3673
- description = " Get the world space position for a 2d camera screen space position" ,
3674
- returnType = " Vector2" ,
3675
- params = {
3676
- {type = " Vector2" , name = " position" },
3677
- {type = " Camera2D" , name = " camera" }
3678
- }
3679
- },
3680
3666
{
3681
3667
name = " GetWorldToScreenEx" ,
3682
3668
description = " Get size position for a 3d world space position" ,
@@ -3697,6 +3683,31 @@ return {
3697
3683
{type = " Camera2D" , name = " camera" }
3698
3684
}
3699
3685
},
3686
+ {
3687
+ name = " GetScreenToWorld2D" ,
3688
+ description = " Get the world space position for a 2d camera screen space position" ,
3689
+ returnType = " Vector2" ,
3690
+ params = {
3691
+ {type = " Vector2" , name = " position" },
3692
+ {type = " Camera2D" , name = " camera" }
3693
+ }
3694
+ },
3695
+ {
3696
+ name = " GetCameraMatrix" ,
3697
+ description = " Get camera transform matrix (view matrix)" ,
3698
+ returnType = " Matrix" ,
3699
+ params = {
3700
+ {type = " Camera" , name = " camera" }
3701
+ }
3702
+ },
3703
+ {
3704
+ name = " GetCameraMatrix2D" ,
3705
+ description = " Get camera 2d transform matrix" ,
3706
+ returnType = " Matrix" ,
3707
+ params = {
3708
+ {type = " Camera2D" , name = " camera" }
3709
+ }
3710
+ },
3700
3711
{
3701
3712
name = " SetTargetFPS" ,
3702
3713
description = " Set target FPS (maximum)" ,
0 commit comments