Announcement

Collapse
No announcement yet.

Help: Both spawned actors are stuck with the same physics (I'm trying to spawn two body half's)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help: Both spawned actors are stuck with the same physics (I'm trying to spawn two body half's)

    Hello,

    I'm trying to spawn two body half's for my enemies, this happens when the character does a vertical slash. I'm able to detect a vertical slash in the middle correctly, and i want to be able to cut the enemy in two half's.
    So my approach is that i hide the current enemy actor and i spawn two half's, both at the same location but with different rotation only (since i'm using 2d and my sprites are symmetrical). and they i'll apply torque in two different directions so one can fall to the right and the other can fall to the left.

    My problem is, when i spawn the two half's they seem stuck together and they both use the same physics. i tried to give each actor their own torque but both of the uses the same one exactly. And when i tried without using the torque both of them falls aligned ( they're still stuck)

    the attached images shows my blueprint setup and the options i used in the collision box of the actors (note that the collision box is used only to simulate the physics as UE4 doesn't let me simulate physics with flipbooks or sprites)


    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	320.3 KB
ID:	1223892

    Click image for larger version

Name:	Capture2.PNG
Views:	1
Size:	66.5 KB
ID:	1223893

    Also how is it possible to simulate physics with paper flipbook?

    Thanks.
    Last edited by IronSuit; 06-14-2017, 10:36 PM.
Working...
X