Colision detection cycle
Hey everyone. (Merry Christmas btw)
Just a simple question. I am working on collision detection and I am not sure about some things.
1) When I have a level with exact number of object, do I have to run the cycle to check if the char is not in the object for the whole level? I guess so but isn't it too bad for performance?
2) When I want to move my char according to the surface, is it possible to make the surface from a lot of vertexes and then just find the nearest and compare it's Y value with Y value of foot (or some kind of static vertex that is not influenced by animations and is somewhere in the foots area) and then just move the char according to that? Or is there another common way how to do that?
Thanks and have a nice day.
Tags for this Thread