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 overunity3d · Aug 22, 2011 at 07:34 PM · velocitydirection

velocity direction

If I have a tumbling object the direction is along multiple axis at varying degrees of it's rotaton. There was a post of velocity direction. Is there a direction vector? There is no staitc axis here to propel along. I fear I must calculate. Oh, tell me this is not so.

An example is a tumbling asteroid in a ship view portal. The ship can circumnavigate / fly around the asteroid as it travels to an inhabited planet. The delimna is the asteriod can not be stopped. It is the ship's crew duty to circle the asteroid and find weak spots to pulse canon and obliterate. Here is a 6 figure game. Easily! I have a whole book of them just waiting to flood the market. But this tumbling problem has got me stopped. So I give this one to the masses to solve. In the network version there is a black hole that numerous asteroids fly towards. The object is for each team to anihilate their asteriod before it hits the event horizon making them the winner. But it gets better!!!! The other mode is to have multiple asteroids heading towards the black hole and the team must navigate to each one and obliterate it.

The current problem is as the viewer/player in this 3d game flys around the asteroid the tumbling asteroid's path /direction is altered by the spinning environment.

I await an answer.

Comment
Add comment · Show 2
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 flaminghairball · Aug 22, 2011 at 07:40 PM 0
Share

$$anonymous$$ind giving me a couple of those figures? :p

Seriously though, I have no idea what you're asking. If you're looking to retrieve the velocity of the tumbling object, use rigidbody.velocity.

avatar image overunity3d · Aug 22, 2011 at 07:46 PM 0
Share

Velocity is of no interest. I am concerned with the direction of a tumbling object.

1 Reply

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

Answer by flaminghairball · Aug 22, 2011 at 07:50 PM

rigidbody.velocity.normalized will give you the tumble direction.

Comment
Add comment · Show 2 · 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 overunity3d · Aug 22, 2011 at 08:00 PM 0
Share

I did not see the .normalized in the rigidbody.velocity Scripting document.

avatar image flaminghairball · Aug 22, 2011 at 08:05 PM 0
Share

rigidbody.velocity is a Vector3 - normalized is a property of Vector3.

If this answers your question, mark it as answered.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How do you limit velocity on a rigid body in only one direction? 1 Answer

Rigidbody Local Velocity 1 Answer

Getting animations to play relative to player's direction? 4 Answers

Moving a ball in the opposite direction of where it hits 1 Answer

Un-normalize direction 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