• 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
3
Question by FTheCloud · Jul 23, 2011 at 06:05 PM · physicspathfindingpathline

Path Object Is Going To Travel

Hey guys,

just wanted to know if there's any way to get the path of where an object is going to go, with physics factored in of course, and Print it in the form of something like a dotted line in front of the object.

Some random examples of what I'm talking about:

So say if there's a sphere moving along the screen and it's on a collision course with whatever. The line in front of it would show where the object will be traveling to and at which angle it would bounce off the object it collides with, like this:

alt text

Or say if the object was something like a meteor and it passes by a planets gravity field. The line in front would show where the meteor is going to traveling and how its going to bend around the planet based on its gravity, like this:

alt text

Just asking how because I have not a clue. Don't care if you don't know anything about the subject, just trying to find a starting point. Thanks.

Comment
Add comment · Show 1
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 Jason B · Jul 24, 2011 at 02:59 AM 0
Share

The only thing I can think of is to have a "ghost" clone of the object with a visual indicator attached (like a trail renderer) and to somehow independently simulate that object at a faster speed than the real thing.

However, you can't set different time scales for different objects, so this may defeat my entire idea.

The only other way this would be feasible is to do a lot of very emotionally-draining calculations via program$$anonymous$$g, but I don't even have the faintest idea how to go about doing it, as I'm not all that great at math.

You could make a GUESS by throwing a super fast-moving version of the object, but then it wouldn't necessarily behave the same way as the real thing (for instance, it might go flying out of the orbit whereas the real object would be carried around).

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by bgmacklem · Jul 23, 2011 at 09:16 PM

If you are using 3ds max as you modeling/ animation engine, then i know you can use its physics to predict the path, then manually draw the dotted line.

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 FTheCloud · Jul 23, 2011 at 11:35 PM 0
Share

The problem is its in real time, not a pre-rendered path.

avatar image bgmacklem · Jul 23, 2011 at 11:52 PM 0
Share

Oh, sorry. Im afraid i cant help you there.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is it possible to store NavMeshAgents paths and assign them to other NavMeshAgents later? 1 Answer

Transforming non deterministic game to deterministic 1 Answer

Raycast pathfinder nodes 1 Answer

What is the best AI system for pathfinding on a moving platform 2 Answers

Is it possible to assign a custom path to a NavMeshAgent? 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