Thread: angle of player
View Single Post
  #23  
Old 08-18-2003, 08:28 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Maybe if I took the equation for the x and y and replaced x and y with playerx and playery and angle with playerangle and solved for playerangle? Doing this I get stuck at what to do when I have to take out of the function because I forgot all of my math classes over summer break.

Where I'm at though:
(playerx-centerx)/radius = sin(playerangle/180*pi)
(playery-centery)/radius = cos(playerangle/180*pi)

can anyone help out?
Reply With Quote