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

Example for (Basis * Vector3) is incorrect #9394

Open
mart3323 opened this issue May 18, 2024 · 1 comment · May be fixed by godotengine/godot#92117
Open

Example for (Basis * Vector3) is incorrect #9394

mart3323 opened this issue May 18, 2024 · 1 comment · May be fixed by godotengine/godot#92117
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug

Comments

@mart3323
Copy link

mart3323 commented May 18, 2024

Your Godot version:

3.4.4 stable [419e713a2]

4.2.2 stable [15073afe3]

Issue description:

The example given for (Basis * Vector3) is incorrect. It currently shows

var my_basis = Basis(Vector3(1, 1, 1), Vector3(1, 1, 1), Vector3(0, 2, 5))
print(my_basis * Vector3(1, 2, 3)) # Prints (7, 3, 16)

But when this code is actually run it gives (3, 9, 18). I also don't see any formula by which one could get (7,3,16) out of that

Perhaps it was intended to read as follows..?

var my_basis = Basis(Vector3(1, -1, -1), Vector3(3, -1, 1), Vector3(0, 2, 5))
print(my_basis * Vector3(1, 2, 3)) # Prints (7, 3, 16)

URL to the documentation page:

https://docs.godotengine.org/en/stable/classes/class_basis.html#class-basis-operator-mul-vector3

@mart3323 mart3323 added the bug label May 18, 2024
@AThousandShips AThousandShips added area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository good first issue labels May 18, 2024
@AThousandShips
Copy link
Member

For anyone wanting to fix this note that class reference changes are done here, see here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants