Download

Accurate sprite collision

I am trying to get collision working between 2D sprites (I am using Paper2D) so I can call functions from the Overlap events. I have successfully got this working when the sprites use the ‘Tight Bounding Box’ as their ‘Geometry Type’ for collision. However, this results in highly inaccurate collision detection. After switching to the ‘Shrink Wrapped’ geometry type for collision (which should provide much more precise collision detection) the overlap events do not trigger as the collision no longer works correctly (For example: http://i.gyazo.com/f60ea8a36f8412e45393ddc5e7967f10.gif, a simple demonstration in a test project).

I would appreciate any help in getting collision to work correctly when the ‘Shrink Wrapped’ option is used, the project really needs the more accurate collision detection. Thanks :slight_smile:

Hi,

I was able to reproduce this bug and have checked in a fix as of https://github.com/EpicGames/UnrealEngine/commit/d48fbc726592cc58d954e67494a9242a66b893f0 .

Cheers,
Michael Noland