My application crashes

Member
Posts: 21
Joined: 2004.11
Post: #1
I'm using the Camera World Colission Tutorial from GameTutorials.com
and i reach problems when checking for colission.
If anyone will read my source code i'll be vry thankful.
Try to build and run, it crash when trying to check colission.

http://macnus.music-inspiration.com/user...ceMaze.zip

MACnus
Quote this message in a reply
Moderator
Posts: 3,572
Joined: 2003.06
Post: #2
I changed this in checkCameraCollision and it seems to run fine now. I left the original lines in but commented them out:
Code:
if([CVector insidePolygon:vIntersection:vTriangle:3] ||
   [CVector edgeSphereCollision:m_vPosition:vTriangle:3:m_radius / 2])
{
CVector    *tempVec;
                
vOffset = [CVector getCollisionOffset:vNormal:m_radius:distance];

//m_vPosition = [m_vPosition add:vOffset];
tempVec = [[m_vPosition add:vOffset] retain];
[m_vPosition release];
m_vPosition = tempVec;

//m_vView = [m_vView add:vOffset];
tempVec = [[m_vView add:vOffset] retain];
[m_vView release];
m_vView = tempVec;
}
Quote this message in a reply
Member
Posts: 21
Joined: 2004.11
Post: #3
Thank you very muchSmile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  I'm going CRAZY!!! Random crashes without reason akb825 3 3,469 Aug 18, 2005 03:46 PM
Last Post: akb825
  pathfinding crashes Iceman 5 4,203 Jul 28, 2005 05:48 PM
Last Post: unknown
  My game crashes on quit... hangt5 17 8,310 Jan 30, 2005 09:38 PM
Last Post: hangt5