Skip to content

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

Closed

Description

@Flarkk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions