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 viliucicenas · May 05, 2016 at 03:35 PM · pathfindingavoidance

Calculating safe zones

Hello, I am doing custom collision avoidance code. The idea is to find safe zones within vision cone which is created with ray-casts. And the main problem I have is generating possible paths. I need to generate two data collections and compare them (and select result from their union):

  1. first one is angle collection within vision cone, of angles at which I could bypass static objects;

  2. second collection is more complicated. I have calculated territories where could be moving obstacle at different time frames approximately and I need angle-position (point in space) collection;

It is kind of abstract question, but I hope maybe someone would have any suggestion how i could retrieve/create such data, I added picture showing principle for passing dynamic objects. If there is missing details ask in comments and I will update my question according.

alt text

snap-2016-05-05-at-153711.png (85.1 kB)
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 tuncOfGrayLake · May 05, 2016 at 11:32 PM 0
Share

So, you want to calculate possible collision paths so your objects can avoid colliding with each other? Could you care to elaborate a bit more?

avatar image viliucicenas tuncOfGrayLake · May 06, 2016 at 05:37 AM 0
Share

Yes, as I said I need two collections which would contain degrees at which would be possible to go to pass the static and dynamic objects. For static ones I need to know degrees at which I could go without hitting nearest static object. For dynamic objects I calculate where they will be at specific time moments (so I have predictions of possible ways), after that I am calculating speeds which I need to pass or let the obstacle through (for every degree in possible way collection).

avatar image tuncOfGrayLake viliucicenas · May 06, 2016 at 07:46 AM 0
Share

I never did this before so here goes nothing. :)

I'd assume we would need the following information.

Entity A - The reference entity that the player controls. It could be stopping or moving.

We need the following in respect to Entity A.

  1. Direction of velocity of Entity A.

  2. $$anonymous$$agnitude of velocity of Entity A.

  3. Width and direction of collision avoidance cone of Entity A.

  4. Some sort of raycasting or collision detection within this cone.

Then we have the Entity B - which is either static or dynamic candidates for collision.

We need the following in respect to Entity B.

  1. Direction of velocity of Entity B.

  2. $$anonymous$$agnitude of velocity of Entity B.

  3. Some sort of raycasting to detect Entity A's collision detection cone. This way you can see if Entity A and Entity B cross roads before they collide and report a possible collision.

PS: For static items, you don't need anything really. Entity A's collision scan activity should include or exclude via a range or size variable depending on Entity A's own direction and velocity.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

need some help with basic pathfinding with obstacle avoidance 0 Answers

Attacking units surround attacked building properly? (New solution, or fix to Nav Mesh?) 0 Answers

Deterministic Pathfinding 1 Answer

How do i get the IsPathPossible() function to ignore some nodes using Astar Pathfinding Project 0 Answers

Navmesh Agent avoidance with as triggers 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