Jump to content

Atan and Rotation. wow


tarre
 Share

Recommended Posts

Hi i got some math problems here. To calculate the radians of X and Y.

Player x Cordinate = -4233

Player y Cordinate = -587.2

Target x Cordinate = -6243

Target y Cordinate = -684.1

i want to get my targets Rot cordinate by using my targets X and Y cordinate. i know (from wikipedia) that Atan is the function i need. but i dunno how

anyone got any good examples?

Link to comment
Share on other sites

Hi i got some math problems here. To calculate the radians of X and Y.

Player x Cordinate = -4233

Player y Cordinate = -587.2

Target x Cordinate = -6243

Target y Cordinate = -684.1

i want to get my targets Rot cordinate by using my targets X and Y cordinate. i know (from wikipedia) that Atan is the function i need. but i dunno how

anyone got any good examples?

I think that exists a function to calculate the radians. Search on help file about _Radian().

When the words fail... music speaks.

Link to comment
Share on other sites

I think that exists a function to calculate the radians. Search on help file about _Radian().

He doesn't want to convert degrees->radians, he wants to learn how the Tan function works.

@tarre

Not sure what you mean, but is this the angle you want?

Posted ImagePosted Image

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...