Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


the heading of the character

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kevin534
How do I cheat?
Reputation: 0

Joined: 01 Jul 2013
Posts: 4

PostPosted: Mon Jan 27, 2014 4:33 am    Post subject: the heading of the character Reply with quote

Hi,

I developed a game with a small team and I'm trying to educate myself on some technical points.

I saw some games which use a heading coefficient between 0 and [-1, 1]
the trick I don't understand is why have to the east and west are 0.7 instead of 0.5.

example :
North : +1(right) or -1(left)
South : 0
East : + 0.7
West : - 0.7

how do they manage to convert this into degrees ?

Thank you in advance !


Last edited by kevin534 on Mon Jan 27, 2014 2:36 pm; edited 2 times in total
Back to top
View user's profile Send private message
kevin534
How do I cheat?
Reputation: 0

Joined: 01 Jul 2013
Posts: 4

PostPosted: Mon Jan 27, 2014 2:29 pm    Post subject: Reply with quote

if I wasn't specific enough on some points don't hesitate to point out it to me.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Tue Jan 28, 2014 2:25 pm    Post subject: Reply with quote

Perhaps they are using radians:
http://en.wikipedia.org/wiki/Radian

You can convert radians to degrees easily. (And vise-versa.)

radians = degrees / ( 180 / PI )
degrees = radians * ( 180 / PI )

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites