twi How do I cheat?
Reputation: 0
Joined: 29 Dec 2013 Posts: 3
|
Posted: Wed Jun 24, 2015 12:09 am Post subject: [FFXIV] Calculating mouse position on a 3D plane |
|
|
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
|
|