My application crashes
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
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
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;
}
Thank you very much
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| I'm going CRAZY!!! Random crashes without reason | akb825 | 3 | 3,136 |
Aug 18, 2005 03:46 PM Last Post: akb825 |
|
| pathfinding crashes | Iceman | 5 | 3,817 |
Jul 28, 2005 05:48 PM Last Post: unknown |
|
| My game crashes on quit... | hangt5 | 17 | 7,731 |
Jan 30, 2005 09:38 PM Last Post: hangt5 |
|

