Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera.SetMatrix doesnt work #15

Open
FatCatTuxedo opened this issue Jul 15, 2019 · 4 comments
Open

Camera.SetMatrix doesnt work #15

FatCatTuxedo opened this issue Jul 15, 2019 · 4 comments

Comments

@FatCatTuxedo
Copy link

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
Copy link
Author

@FatCatTuxedo
Copy link
Author

Fixed by using Vector3 instead of Matrixs

@msonnemans
Copy link
Collaborator

I still want to look into this regardless

@FatCatTuxedo
Copy link
Author

code that worked:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants