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

Error/warning in rotaiton code #18

Open
rogerdv opened this issue Dec 24, 2022 · 0 comments
Open

Error/warning in rotaiton code #18

rogerdv opened this issue Dec 24, 2022 · 0 comments
Assignees

Comments

@rogerdv
Copy link
Owner

rogerdv commented Dec 24, 2022

Line 124 in entity.gd is producing an error:

E 0:00:01:0746 _physics_process: The transform's origin and target can't be equal.
<C++ Error> Condition "origin.is_equal_approx(p_target)" is true. Returning: Transform3D()
<C++ Source> core/math/transform_3d.cpp:82 @ looking_at()
entity.gd:124 @ smooth_rotate()
entity.gd:235 @ _physics_process()

This is the line:
var to = Quaternion(transform.looking_at(pos).basis).normalized()

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