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

BG - Need Math function: ATAN2 #6414

Open
j-conrad opened this issue Dec 12, 2023 · 0 comments
Open

BG - Need Math function: ATAN2 #6414

j-conrad opened this issue Dec 12, 2023 · 0 comments
Labels
Behavior Graphs enhancement work that enhances an existing feature P1 Address as quickly as possible

Comments

@j-conrad
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A lot of game development code relies on the atan2 math function, such as a rotating to a face a target.

The atan2 function is useful in many applications involving Euclidean vectors such as finding the direction from one point to another or converting a rotation matrix to Euler angles.

The atan2 function is now included in many other programming languages, and is also commonly found in mathematical formulas throughout science and engineering.

Geometry nodes and other Blender systems use atan2 as a built-in function as well.

Describe alternatives you've considered
Setting up the math for atan2 by hand would make way too much spaghetti graph code.

Additional context
Here's the function in Geometry Nodes. Takes two arguments (floats) and outputs the result as a float.
image

@j-conrad j-conrad added enhancement work that enhances an existing feature P1 Address as quickly as possible Behavior Graphs labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Behavior Graphs enhancement work that enhances an existing feature P1 Address as quickly as possible
Projects
None yet
Development

No branches or pull requests

1 participant