Collision Normal of two points

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 13:06:10

It is undefined. Technically, the collision normal should be the normal at the surface of the their configuration space obstacle (ie the set of all transformations where the two objects intersect). Here is an interactive demo which may help:

http://www.pfirth.co.uk/minkowski.html

As a result, if the objects are not smooth, then a well defined normal will not exist at the points of non-differentiability on their boundary. Instead you get a cone of possible normals.

          ^
          |
          |  normal cone
          |
----------+---->
~~~~~~~~~~|
~obstacle~|
~~~~~~~~~~| 

Thus, you could take any normal in that cone to be the one you use to separate the two objects, for example:

          ^   ^
          |  /
          | /  possible normal
          |/
----------+---->
~~~~~~~~~~|
~obstacle~|
~~~~~~~~~~| 

Now the principle of least action states that the correct solution to the motion here should be the normal which does minimal work, and the extrema here are just the walls of the cone. This means that in the absence of any other interactions, we could just assume that the impulse force is in the direction of one of the faces. To decide which one, again the action principle says that you should pick the normal which does least work. To figure this out, you just compute the collision response for both faces, then select the face whose impulse force has the least magnitude.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!