Slipe-Core icon indicating copy to clipboard operation
Slipe-Core copied to clipboard

Camera.SetMatrix doesnt work

Open FatCatTuxedo opened this issue 6 years ago • 4 comments

Camera.Instance.SetMatrix(new Matrix4x4(new Matrix3x2(2729.7429199219f, -2300.41015625f, 10.981800079346f, 2729.4001464844f, -2306.2919921875f, 10.65811252594f)), 0, 70);

This doesnt work but it does in Lua.

setCameraMatrix(2729.7429199219, -2300.41015625, 10.981800079346, 2729.4001464844, -2306.2919921875, 10.65811252594, 0, 70)

FatCatTuxedo avatar Jul 15 '19 14:07 FatCatTuxedo

FatCatTuxedo avatar Jul 16 '19 08:07 FatCatTuxedo

Fixed by using Vector3 instead of Matrixs

FatCatTuxedo avatar Jul 16 '19 08:07 FatCatTuxedo

I still want to look into this regardless

msonnemans avatar Jul 16 '19 08:07 msonnemans

code that worked:

Camera.Instance.SetMatrix(new Vector3(2729.7429199219f, -2300.41015625f, 10.981800079346f), new Vector3 (2729.4001464844f, -2306.2919921875f, 10.65811252594f), 0, 70);

FatCatTuxedo avatar Jul 16 '19 08:07 FatCatTuxedo