implement Ray-vs-Capsule and Ray-vs-AACube