Train Car Problems

BlitzMax Forums/BlitzMax Programming/Train Car Problems

Tips:

1) keep track of each traincars position from the center of the front of the traincar, not the center of the traincar.

2) work your way down the traincars from the first one, repositioning each, and then fixing it if their corners intersect

3) the corner intersection can be checked by comparing the rotation of two traincars, rather than using any collision detection.