Reply To: What if the walls are not straight?

Forum Archive What if the walls are not straight? Reply To: What if the walls are not straight?

#98535
Martin Bergwerf
Participant

    HI Nathi,

    Not sure if Thom will check the questions on this Course, but collisions are hard to calculate, when Objects get more complex. With a Monkey Head, each Face would have to be considered  as a separate ‘wall’.

    A Sphere would be a lot easier than a Cube, it’s the simplest Object in 3D. Just a Point (the Center) and a Distance to that Point. The Normal of any Surface Point, is the Vector from that point to the Center.

    More Complex Objects can often be approximated by simpler forms:

    Collisions_00.png

    You can also combine things, like Distance to Center, but not Less Than Zero (for instance):

    Collisions_01.png

    Hope this helps a bit.