Collision detection for large projectiles

Hey guys! I’ve been working on a game that will require large, up to 8x8x8 sized projectiles, that can move at different speeds (not hitscan).

My question is, what method of hit detection would be the best trade off between accuracy and performance?

The options I’ve thought of are essentially

A- Touched collision detection with body movers. This would work, but the tradeoff would be detection consistency (especially at high speeds) and performance (body movers can be relatively taxing)

B- getTouchingParts with cframing. This could work, although I am unsure of the accuracy here.

C- Raycasting the edges and center with cframing. Would be semi inaccurate depending on the size of the projectile, but for my purposes would work well enough. Only problem is casting 5 rays a frame might get expensive when a decent amount of projectiles are present.

Anyways, let me know your thoughts/opinions on what method would work best, any other methods you can think of, and what’s worked for you! I’d love to have some good input before I start working on it.

1 Like

Just a quick bump - any feedback? Any alternative methods I may have missed?