Jump to content

Recommended Posts

Posted

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?

Posted

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().
Posted

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!

Posted

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

yes. thanks

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
  • Recently Browsing   0 members

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