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 


[FFXIV] Calculating mouse position on a 3D plane

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

Joined: 29 Dec 2013
Posts: 3

PostPosted: Wed Jun 24, 2015 12:09 am    Post subject: [FFXIV] Calculating mouse position on a 3D plane Reply with quote

I've been trying to write a teleport-to-mouse function for my FFXIV hack, but I haven't had any success calculating the position of the cursor in the world.

I've tried different things such as
  • getting camera angle and distance to calculate a vector projection of the mouse onto the world
  • figuring out if the mouse has its own array of floats for its coordinates
  • finding an address for the magnitude and angle of a vector that would be created from the player to a ground-targeting reticle

Among other things. Nothing's worked so far, mostly because I haven't figured out where the mouse projects onto the ground or the coordinates of the ground under the projection. The z-axis is important because if you teleport too high off the ground, you'll be stuck there. So if you have any insight on other approaches or perhaps you see some simple solution that I overlooked, it would be greatly appreciated.

Also, I realize this should probably be fielded to math majors or something, but I doubt they'd be likely to help when they find out what I'm calculating this for.

My available data:
  • player coordinates
  • angle player is facing
  • camera angle
  • camera distance
  • possible 2d coordinates from directinput8.dll
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Jun 24, 2015 1:48 am    Post subject: Reply with quote

We do not support online / multiplayer hacking on this site.
http://forum.cheatengine.org/faq.php#0

_________________
- 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 Gamehacking 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