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 locus84 · Aug 03, 2013 at 04:58 AM · vector3quaternionserver

How can I use Vector3, Quaternion Classes in my server?

There are many useful methods in unity's Vector3 and Quaternion classes.

For example, RotateAroundPoint or Slerp for EulerRatation(Vector3).

In my game, entire AI movement depends on the server logics.

Following my working process, I made my AI works in unity, and was about to move that logic into my photon server.

So I added UnityEngine.dll to my server(So far I didnt know that it wont work).

And there I found some security exception about Ecall method.

Finally I noticed that I should have made my own classes or used the other library for 3d-math.

Can you help me to find some open library for 3d-math(which has similar functions to unity)?

Or to find the place where I can study about 3d-math to make my own.

Things i need to learn are...

Quaternion to Euler(Vector3), and reverse.

Quaternion operator * with Vector3 (rotate a point with the quaternion)

Quaternion.Angle(Quaternion A, Quaternion B)

Quaternion.Slerp

Quaternion.LookRotation

Those are things I'm using in my code in server.

Plz help me!

Comment
Add comment · Show 4
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 locus84 · Aug 03, 2013 at 05:12 AM 0
Share

Self-update : found a good library called Slimmath. But still There is no Translations between quaternion to eulor, Need to get into it more..

avatar image Benproductions1 · Aug 03, 2013 at 10:29 AM 0
Share

If you want to learn 3d program$$anonymous$$g, I suggest checking out these links:

http://en.wikipedia.org/wiki/Euclidean_vector
http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation
http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles

Yes I know they are all Wiki articles, but they can really help :)
If you have any questions about wording etc, Google is always available XD

avatar image Benproductions1 · Aug 03, 2013 at 10:35 AM 0
Share

Oh and also, this is not a Unity related question. You should not ask this here :)

avatar image locus84 · Aug 04, 2013 at 03:58 PM 0
Share

Thank you for useful links Benprojections! Those really helps!! It's not directly related with unity, but ppl who like me may stuck same problem.(Specially some1 who dosent have basic knowledge about 3d progam$$anonymous$$g - could be possible bcuz unity is easy to use and there would be many ppl who doesnt start from a programmer like me) If there is... :(.

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

15 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

Related Questions

How is the rotation of a Transform converted into a Vector3 in the inspector ? 2 Answers

Can someone explain this part of the PlayerMoveController.js script in the AngryBots demo? 3 Answers

Slerp look at direction not working... 3 Answers

How can I convert a Quaternion to a direction vector? 3 Answers

How can I quickly calculate Land Speed from a Vector3? 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