You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
Windows 7 & Windows 10
Issue description:
Camera.GetGlobalTransfrom.basis in C# returns a different value from Camera.get_global_transfrom() in GDScript.
Steps to reproduce:
It should be as simple as placing a Camera then log let's say the forward vector: GD.Print(Camera1.GetGlobalTransform().basis.z); and print(Camera2.get_global_transform().basis.z) using C# and GDScript respectively. Shouldn't those two return the same results?
In my case the values are:
(-0.766044, 0271654, -0582563) for C# and
(0.694272, 0.422618, -0.582563) for GDScript.
If I had the required time I would test it with Spatial class too. I think the issue extends down to that.
Edit:
The same issue occurs with GetTransfrom() and GetCameraTransform().
The text was updated successfully, but these errors were encountered:
ioannis-koukourakis
changed the title
Camera.GetGlobalTransfrom.basis in C# returns a different value from Camera.get_global_transfrom() in GDScript.
Camera.GetGlobalTransfrom() in C# returns a different value from Camera.get_global_transfrom() in GDScript.
May 16, 2018
It seems like you are accessing different cameras:
in C# code you used Camera1, and in GDScript you used Camera2.
Are both Camera1 and Camera2 same, try accessing with a single camera reference in both languages.
@nazgulsenpai thanks for the info. I wish I knew about RC2 earlier cause I moved the entire project to GDScript. I think I'll stick with it at least until a stable mono version is out.
Godot version:
Godot_v3.0.2-stable_mono_win64
OS/device including version:
Windows 7 & Windows 10
Issue description:
Camera.GetGlobalTransfrom.basis in C# returns a different value from Camera.get_global_transfrom() in GDScript.
Steps to reproduce:
It should be as simple as placing a Camera then log let's say the forward vector:
GD.Print(Camera1.GetGlobalTransform().basis.z);
andprint(Camera2.get_global_transform().basis.z)
using C# and GDScript respectively. Shouldn't those two return the same results?In my case the values are:
(-0.766044, 0271654, -0582563) for C# and
(0.694272, 0.422618, -0.582563) for GDScript.
If I had the required time I would test it with Spatial class too. I think the issue extends down to that.
Edit:
The same issue occurs with GetTransfrom() and GetCameraTransform().
The text was updated successfully, but these errors were encountered: