Original Post
Hi all,
I''ve been having some collsion detection problems. I have a character mesh in 3rd person view. Using a ray I detect cube(mesh) object in my environment to check for collision.
I''ve been using the following code
if(nodeTree->CheckIntersect(character.position.x,1,character.position.z,character.position.x+xVel,1,character.position.z+zVel,NULL))
{
zVel=-zVel;
xVel=-xVel;
collision=true;
}
Should I be doing a bounding sphere collision check for for world objects, such as a box,or is the ray fine this.
Thanks