View Single Post
  #1  
Old 09-10-2008, 11:12 AM
whj whj is offline
Member
 
Join Date: Apr 2008
Posts: 60
real time collision on animation path

Hello,

I'd like to simulate some cars running on the road without crash. Cars are animated by animation path and those paths have intersection. I use .collideBox() and .enable(viz.COLLIDE_NOTIFY) for each car for collision. But I don't exactly know how to handle collision event in the callback function. Because once two cars are about to collide, I need one car to speed up and the other to slow down. But my program have no idea which car should speed up and which car should slow down. Does anybody have a solution for that?

Thanks,
whj
Reply With Quote