Stupid Question: hitsphere evaluation efficiency
Moderator: Moderators
That would require making weapons check for collision on the line between their old and new position (use the beamlaser code if in doubt) instead of only checking at the positions themselves. Would be great if that were implemented, it'd also avoid the problem of fast weapons travelling through small targets without connecting.
Actually, it wouldn't, tracing the ray would be pretty pointless on a ballistic weapon as there could be another unit/feature between where it hits and where it collides.KDR_11k wrote:That would require making weapons check for collision on the line between their old and new position (use the beamlaser code if in doubt) instead of only checking at the positions themselves. Would be great if that were implemented, it'd also avoid the problem of fast weapons travelling through small targets without connecting.
You're on the right track though. It should be possible to determine the angle relative to the map which the weapon collided just from the start and end positions, no need to trace all points along the line.