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

Basis::looking_at() does not expose parameter use_model_front #1624

Closed
Flarkk opened this issue Oct 14, 2024 · 0 comments · Fixed by #1625
Closed

Basis::looking_at() does not expose parameter use_model_front #1624

Flarkk opened this issue Oct 14, 2024 · 0 comments · Fixed by #1625

Comments

@Flarkk
Copy link
Contributor

Flarkk commented Oct 14, 2024

Godot version

4.3-stable

godot-cpp version

4.3-stable

System information

Ubuntu 24.04

Issue description

The function declaration of Basis::looking_at() does not expose the last parameter use_model_front :

static Basis looking_at(const Vector3 &p_target, const Vector3 &p_up = Vector3(0, 1, 0));

This is how Basis::looking_at() is described in Godot documentation :

Basis looking_at(target: Vector3, up: Vector3 = Vector3(0, 1, 0), use_model_front: bool = false) static

Workaround : negate the vector passed as p_target to make Basis::looking_at() work as when use_model_front is true.

Steps to reproduce

Trivial

Minimal reproduction project

Trivial

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

Successfully merging a pull request may close this issue.

1 participant