[FIXED] Problem in Detecting collisions for CFrame-moved ships in Roblox RTS game

Hey,

I’m making a Napoleonic-era naval RTS game where ships move to a clicked destination.
I’m using SetPrimaryPartCFrame every frame to update the ship’s position & rotation (for smoother turning than physics), but I’ve run into a problem:

Touched events don’t fire reliably when moving this way — for example, I have a part called "FLANK" that should detect when a ship collides with it.
If I walk into the FLANK part with my character, it fires, but when the ship (moved via CFrame) hits it, nothing happens.

My question is :
What’s the best way to detect collisions between CFrame-moved models and other parts in Roblox?

Thanks in advance,
adouam8383

you can use something like getpartsinpart for each part with high tolerance in the overlapparams if you want very accurate hitboxes

i think to get good performance you have to make an approximation of the hitbox with shapecasts, and then to detect collisions with them shapecast hitbox might work or you can implement it yourself