Page 1 of 1

Best way to do cam/roller collision?

Posted: Mon Feb 11, 2019 12:04 pm
by random
Hello,

What would be the most appropriate way to implement cam / cam follower collision? Cam is a (possibly concave) prism and follower is a cylinder. I do not expect top/bottom collisions, only side to side. See pic here: viewtopic.php?f=9&t=12591
There is going to be quite a few cams like that in the final system. The cams are all generated programmaticaly.
I guess I can either:
* Generate my cam as a union of a lot of skinny triangular prisms
* Use built in convex decomposition
* Use GImpact or some other existing concave mesh collision method
* Write my own prism/cylinder collision algorithm
Any suggestions?

Thanks,R