Jump to content
Sign in to follow this  
tarre

Atan and Rotation. wow

Recommended Posts

tarre

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?

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
Share on other sites
tarre

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

Share this post


Link to post
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
Sign in to follow this  

×