Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by ReytheRed · Jun 29, 2013 at 01:51 AM · rotationcamera-lookmatrix4x4

How can I construct a 4x4 rotation matrix to look in the direction of a Vector4?

I have two Vector4s, representing points in four dimensional space, and I need to rotate an object to point from one to the other.

Every solution to similar problems that I've seen only works in three space.

Ideally I would like an efficient solution, as this operation will need to be done every frame, possibly for multiple objects.

Comment
Add comment · Show 6
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 Benproductions1 · Jun 29, 2013 at 02:56 AM 0
Share

The fourth dimension is time, therefore you use the normal, 3 dimensional matrix and then something else for the fourth dimension. (Now I'm curious... what do you need Vector4's for??)

avatar image ReytheRed · Jun 29, 2013 at 03:25 PM 0
Share

I've added a fourth spacial dimension, that is why I'm using Vector4s and that's why I need a 4x4 matrix.

avatar image Benproductions1 · Jun 30, 2013 at 01:58 AM 0
Share

Thats what I'm curious about. 4 dimentional space does not exist. By all means you need way more than quaternions to represent your rotation. $$anonymous$$eaning you will not only have to come up with a 4 dimentional rotation matrix, but also a way of even having rotation in four dimentional space.

No offence, but how is four dimentional space usefull, when you can only render in 3d space?
Information like this is btw very useful to other people when they try to answer your question ;)

avatar image ReytheRed · Jun 30, 2013 at 04:49 AM 0
Share

I created a way to render 4d objects. Once I have something good enough to show off, I'll make sure to post in the forums.

The rotation is actually fairly simple, you just multiply a Vector4 by the 4x4 rotation matrix. Do that for each vertex and you are set.

avatar image Benproductions1 · Jun 30, 2013 at 09:55 AM 0
Share

But you first need that matrix, which is not simple :)

It seems like you really need to explain more about how your 4 dimensional space works, before it's possible to come up with a matrix. (But I might be totally wrong there)

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

16 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

Related Questions

Rotate Vector3 array around a point 1 Answer

Rotating a camera that has MouseLook.cs attached 0 Answers

Rotate objects face to camera 1 Answer

Creating a Matrix4x4 from an Object's Transform 1 Answer

Camera following player gameObject,Camera follows player, with script attached. 1 Answer


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