Jump to content

Modeling a No-Fly Zone


mtila21
 Share

Recommended Posts

Any ideas on how to model a no-fly zone?  

 

Specifically, I have vehicles that represent aircraft and use free space only.  But, these aircraft need to avoid certain areas or no-fly zones.  Is there a way to allow a vehicle to run in free space only, but not go in certain areas?  

 

Any thoughts would be greatly appreciated!!

Link to comment
Share on other sites

  • 3 weeks later...

I've attached a small model that demonstrated a very simple example of the behavior you're after. The entities divert in only 1 dimension (X). The entities periodically recheck (every second) whether they've crossed a defined X threshold. When they cross the threshold they divert in the Y direction in either a positive or negative direction (using Random.Discrete) and then resume course towards the destination.

 

Hope this is helpful.

 

Lucas.

Free Space Diversion.spfx

Link to comment
Share on other sites

×
×
  • Create New...