Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision avoidance
#2
Hi,
The controller classes have a protected method called SimulateAdvance. It documentation says
"Advance the controller and return the new position. Contrary to <see cref="Advance"/>, this method will not do any side effect operations, like updating some internal state, or triggering events"
You can use this method instead of having a trigger in front of your object, it will yield better results.
You can expose publicly the method in your own controller class (inheriting from SplineController for example) and then have a crowd manager that will simulate the advance of all the controllers, then detect collisions and modify the properties of the relevant controllers.

(11-09-2018, 02:49 AM)radu392 Wrote: how to determine by how much to slow down the object smoothly enough to avoid the collision, especially since controllers would have varying sozes, speeds, orientation, paths, everything.

If you can't find a simple logic that benefits from your game scene constraints, give a try to this method:
http://gamma.cs.unc.edu/ORCA/publications/ORCA.pdf
Unlike what the paper states, your objects can't move freely, so you will need to modify their solution to fit your constraints.

PS: I never worked with collision avoidance, neither have I implemented the above paper, so I have zero experience on this field. It's just that years ago I attended to a talk of a Crytek employee presenting this method, or a very similar one, which they implemented in Crysis 2
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Collision avoidance - by radu392 - 11-09-2018, 02:49 AM
RE: Collision avoidance - by _Aka_ - 11-09-2018, 10:44 AM
RE: Collision avoidance - by radu392 - 11-09-2018, 06:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Can't export custom collision meshes Mike Danielsson 5 10 10-14-2022, 10:36 AM
Last Post: _Aka_
  Local Avoidance with splines and colliders. ArachnidJacob 4 8,944 06-10-2015, 06:42 PM
Last Post: ArachnidJacob
  Collision along spline Keladinus 5 10,053 08-09-2014, 05:28 PM
Last Post: Jake

Forum Jump: