Why is there no collision on my Flipbook?

  • 4.7
  • Windows: 8.1

I am making a Paper2D project at moment and I might have found a bug with Event Hit when using a Flipbook.

http://puu.sh/gLALI/bd7a0ae824.jpg

Now this doesn’t work. It’s a Flipbook Component.

http://puu.sh/gLB2A/40e27d8696.jpg

But this works, and that’s a Sprite.

So I have a suspicion that it doesn’t work for Flipbooks. Below is a video of lowest picture setup working as intended:

[EDIT]

After further inspection Hit and Overlap doesn’t work for Flipbook.

Hi Vipar,

I wasn’t able to reproduce this in 4.7.3. Do you have collision set in your flipbook asset?

35495-setflipbookcollision.png

If so, can you show me collision settings for your Blueprint which contains flipbook component? Thanks!

I guess that was problem. Strange. It’s set to collision per default on Sprites. Might have to change default values on Flipbooks to be First Frame Collision as well?

default is set to No Collision because it’s less expensive to use a standard collision box component in a Blueprint instead of using Flipbook collision, and it’s generally better practice for performance not to use it if it’s not necessary.

For reference, first Frame Collision will use collision from first frame of flipbook, and Each Frame Collision will update collision to match each Sprite used in Flipbook. latter is obviously expensive as it recreates physics state every frame.

I see. Why is not using Collision Box I gave it in Sprite Making process?

If you enable Collision Source in your Flipbook, it does use collision from your Sprite. Depending on setting, it will use collision from first Sprite in your Flipbook, or it will update to match collision from each Sprite in Flipbook.