Question

I am creating an 3d car racing game and till now i have integrated accelerometer and i can move the car through the city the only thing now remaining in my game is collision detection ... i want to stop my car when it bangs on wall etc ...

how can i do that ? i know boundingVolume property ,but i am having an city(3d world as a single node ) and car so how can detect when it collides wall etc ?

please can you tell me what should be my approach ? any sample code? please help as i am new to this and don't have any experience in it ...

Thanks Amrut

Was it helpful?

Solution

Now cocos3d is on 0.6.2 version and as you know official site wrote that "simple collision detection" not supported yet! (big trouble) They want to implement it in 0.7 version.

But I think it is better for you to save your city locations in the file and when your car moved to each street you detect it and load some part of city locations into some variables and now detect "simple collision detection" by hand.

I hope it works for you!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top