Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Machineman · Feb 20, 2019 at 05:56 AM · rotationquaternionmemorymatrix

Matrices to rotation

I need to convert values found in Cheat Engine of a program (Minecraft in this case) by reading memory to Vector3 or Quaternions so that I can match my Unity's camera's rotation to that of the target program's camera's rotation.

.

So far I can find values (see images) but I cannot make sense of them. Please halp.

.

Most of the valuies range from -1 to 1, but some stay between 1 and 0.

.

Here is my original forum post: https://forum.unity.com/threads/3d-in-game-overlay-in-any-game.631612/

.

https://i.imgur.com/EFSjj55.png

https://i.imgur.com/32XGHws.png

https://i.imgur.com/PQjU0CL.png

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Bunny83 · Feb 20, 2019 at 10:46 AM

This question is actually pretty off-topic. However the values doesn't look like they represent a matrix. It looks like they are just the forward and the up vector (so not a full rotation matrix). However finding the values would only make sense if you know / control the actual values in game. You display float values while MC mostly uses double values. I'm not that into MC development, so i'm not familiar with the internal representation. Keep in mind that MC is a pure client-server architecture. So you will most likely find the same values several times. Doing black box memory reads is dangerous and unreliable.

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Machineman · Feb 20, 2019 at 12:40 PM 0
Share

Thanks I successfully made a rotation from the forward vector because of your feedback. Explain to me why it is dangerous and unreliable to read memory and any alternatives.

Thanks

avatar image Captain_Pineapple Machineman · Feb 20, 2019 at 02:26 PM 0
Share

I guess it's because you can never reliably tell what you actually are reading. $$anonymous$$emory assignements might change. Also when multiple processes try to access the same resources at the same time this might lead to undefined behaviours/segmentation faults. This is why when you work with multiple threads in one programm you always use mutexes as guards against access issues.

avatar image Machineman Captain_Pineapple · Feb 20, 2019 at 02:55 PM 0
Share

That makes a lot of sense thanks for that. Someone give me an alternative to what I am doing, as I can't think of any other way to get the target program's current location and rotation without reading memory.

Also isn't there a way to get the address of the value if you know what writes the value? The memory location changes each time, but there's some code that writes to it and that code can be targeted each time?

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

139 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Change the roll of the rotation 0 Answers

Quaternion To Matrix conversion failed because input Quaternion is invalid 1 Answer

Creating a Matrix4x4 from an Object's Transform 1 Answer

How to Decompose a TRS Matrix? 3 Answers

Quaternion to Matrix Conversion Error - Camera Script 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges