Srolfe657

Hi everyone, I was able to get the Spine plugin working fine in UE4, I can setup/play the animations in blueprints no problem.

I'm trying to get a sidescroller/platformer setup and I can't figure out what component to add or what I need to do to get gravity/physics working.

I've tried enabling Simulate Physics on the SpineSkeletonRenderer but that doesn't do anything. I've also tried adding a capsule collider and doing the same, still nothing (it also didn't collide with the paper2d character thats included with UE4's 2d sidescroller content but I think I can probably fix that with some work).

---

So after some more messing around I was able to get it working. I ended up creating a Paper2D Sprite, adding the animation and renderer spine components then changing the normal sprite renderer to not be visible.

That's probably not the best way to go about this so if anyone else has some pointers please let me know.
Srolfe657
  • Bài viết: 6

Mario

The spine-ue4 plugin doesn't really have any connection to UE4's physics system. I'm not a UE4 physics expert, but whatever is the default way to add physics to any actor should also work on actors that use spine-ue4 components. Going the Paper2D route seems sensible to me if they have physics integration specifically tied to 2D for Paper2D Sprites.
Hình đại diện của thành viên
Mario

Mario
  • Bài viết: 2360


Quay về Runtimes