Path: chuka.playstation.co.uk!news From: 2bad@lineone.net (Tanvir Khan) Newsgroups: scee.yaroze.beginners Subject: Collision Detection Date: Mon, 14 Sep 1998 17:29:23 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 70 Message-ID: <35fd526f.9192286@news.playstation.co.uk> NNTP-Posting-Host: host5-171-230-69.btinternet.com X-Newsreader: Forte Free Agent 1.11/32.235 Hi, I am still getting nowhere with collision detection even after some help from George Bain's sample, so I am putting some bits of the code of the code I'm working on for your knowledge so you know whats going on. I want a 3D car to collide once it is of the track which is made of cells. The struct of the car is: typedef struct { SVECTOR rotation; long speed; GsDOBJ2 Object_Handler; GsCOORDINATE2 Object_Coord; } Object_Header0; Object_Header0 CarModel; Track struct is: typedef struct { long numberObjects; GsDOBJ2 Object_Handler[GROUND_MAX_OBJECTS]; GsCOORDINATE2 Object_Coord[GROUND_MAX_OBJECTS]; u_long *Back_Pointer[GROUND_MAX_OBJECTS]; u_long *Object_Pointer[GROUND_MAX_OBJECTS]; } Track_Header0; Track_Header0 TrackData; Track_Header0 Track1Data; Track_Header0 Track2Data; Track_Header0 Track3Data; Track_Header0 Track4Data; Track_Header0 Track5Data; Tack array: char RawGroundArray[GROUND_MAXX][GROUND_MAXZ] ={ {'6','1','1','1','1','1','2','0','0','0','0','0','0','6','2'}, {'3','0','0','0','0','0','5','1','2','0','0','6','1','4','3'}, {'3','0','0','0','0','0','0','0','3','0','0','3','0','0','3'}, {'3','0','0','0','6','1','1','1','4','0','0','3','0','0','3'}, {'3','0','0','0','3','0','0','0','0','0','0','3','0','0','3'}, {'5','1','2','0','5','1','1','1','1','1','1','4','0','0','3'}, {'0','0','3','0','0','0','0','0','0','0','0','0','0','0','3'}, {'0','0','3','0','0','6','1','1','1','1','1','1','1','1','4'}, {'0','6','4','0','0','3','0','0','0','0','0','0','0','0','0'}, {'0','3','0','0','6','4','0','0','0','0','0','0','0','0','0'}, {'6','4','0','0','3','0','0','0','0','0','0','0','0','0','0'}, {'3','0','0','0','5','1','1','1','1','1','1','1','1','1','2'}, {'3','0','0','0','0','0','0','0','0','0','0','0','0','0','3'}, {'3','0','0','0','0','0','0','0','0','0','0','0','0','0','3'}, {'5','1','1','1','1','1','1','1','1','1','1','1','1','1','4'}}; Can anyone please put some examples for collision detection using the information provided. If anymore info is needed that's no problem. Sorry for the trouble. Tanvir Khan EMAG DESIGN 2bad@lineone.net