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 


View Matrix Beginner Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Wed May 23, 2018 4:22 pm    Post subject: View Matrix Beginner Question Reply with quote

Hey there,

i am working on a exact YAW Calculation.
Background Information: I want to create a AutoIt Script to calculate it.
(I would be very happy of a suggestion. I don't want a full working code, just some ideas, hints.) Smile

The Game just has a pointer to a rounded 4byte YAW Value, but i want it much more exact.
So i think i found the View Matrix of this Game.
And the Pitch Value should go from +0.95 to -0.95
I have took some Pictures of the View Matrix:
-Yaw 0, Yaw 90, Yaw 180, Yaw -90
Yes, the Game show the Yaw (4Byte) like this.
But that should'nt be the main topic.
I've marked the Values which i think i need to calculate the exact YAW (float).

Can somebody give me a hint, how to calculate this ?
Or is there any other possible way ?
I just thought, i will check if the Values are negative or positive, but maybe there are better/simpler methods for it.

Sry, im really new in calculating things like that.



View Matrix.jpg
 Description:
View Matrix
 Filesize:  375.74 KB
 Viewed:  2101 Time(s)

View Matrix.jpg


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Wed May 23, 2018 6:47 pm    Post subject: Reply with quote

Use atan2. CE Lua example:
Code:
function getyaw()
  return math.atan2(-readFloat(0x2881bc8), readFloat(0x2881bc0)) * 180 / math.pi
end

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Thu May 24, 2018 12:27 am    Post subject: Reply with quote

oh that was fast and looks way more easy than i expected Shocked
Thank you, this will help me very very much Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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