Collision Detection fails with AI cars
Posted
by
amit.r007
on Game Development
See other posts from Game Development
or by amit.r007
Published on 2012-09-11T13:34:58Z
Indexed on
2012/09/11
21:50 UTC
Read the original article
Hit count: 285
I am making a car parking game in flash and AS3 wherein I drive my car along with other AI traffic cars moving along a specified path using Guidelines.
I am using CDK for collision detection.
The collision detection works fine with few AI cars, but doesn't seems to be working as required for few AI cars.
When an AI car is moving on a path in a straight line it works fine.... but when the AI Car turns at 90 degress..... my car goes into the AI car (Overlapping) and it hits at the center of that AI car and then collision is Detected.... .....
I made a New path and used a new Sprite for AI car... but still the problem pursues....
© Game Development or respective owner