Physics objects sometimes stick to each other
Hey everybody. I am working on a stacking game in "2D Side Scroller" Mode and I spawn boxes at my anchor point. Now my problem with the boxes is, that they sometimes start sticking to each other which is not great for a stacking game. The boxes are from the parent class Actor and have a collision box generated by the engine when importing the paper 2d sprites. I hope somebody can point me into the right direction to let them behave like normal objects that collide and stack but do not stick.
If you need more infos / screenshots of objects let me know.
Thanks in advance for your time, very appreciated
asked Sep 04 '17 at 04:02 PM in Using UE4
I'm 99% sure I found the solution. I know this is an old post, but I thought I would answer in case anyone like me still had this issue.
In the actor's details panel, locate the 'collision' section, and check the 'use ccd' box. Like I was saying before, I think it's lag in the game's tick causing the sticking to happen, 'continuous collision detection' must be more reliable for this type of 2D interaction. I upped the gravity x10 with this solution in place and still didn't have any blocks sticking, where before this would cause every block to stick.
My only worry is this making a measurable impact on the game's performance, if there are many of these dropped actors present at once.
answered Aug 05 '19 at 05:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here