JSoftware
15-02-2004, 02:57 PM
well well well...
i've got a bunch of triangles and a camera! i want to make some nice and simple sphere collision detection but as it is the first time i ever try collision detection programming i don't really know how to do that.. i'm not the big mathematic genius but i thought of a way to do it: (it sounded good in my ears)
check all triangles with following=
get nearest point inside the triangle
if the length from the camera to the point is 5 or under the move is invalid and i don't move that way!
is that the easiest way to do it? i just want it so easy as possible (just without bounding boxes which seems impossible to implement at this state) :roll:
i've got a bunch of triangles and a camera! i want to make some nice and simple sphere collision detection but as it is the first time i ever try collision detection programming i don't really know how to do that.. i'm not the big mathematic genius but i thought of a way to do it: (it sounded good in my ears)
check all triangles with following=
get nearest point inside the triangle
if the length from the camera to the point is 5 or under the move is invalid and i don't move that way!
is that the easiest way to do it? i just want it so easy as possible (just without bounding boxes which seems impossible to implement at this state) :roll: