0 votes

I've been hacking through the third person shooter demo, and I came across a function in the Basis type. in this line from the 3.1 version of the demo, it uses the function get_rotation_quat(), which is suppose to be a function in the Basis type. However, it is missing from the type, even though the documentation says that it's in version 3.1 of the engine.

In any case, how can I recreate the get_rotation_quat() function so as to use the third person shooter code?

in Engine by (1,962 points)

1 Answer

0 votes
Best answer

There's no description for get_rotation_quat() but I'd assume that Quat(basis) would do the same thing. Also I can't find any issue on GitHub about this so it might be worth mentioning it on there

by (3,225 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.