Announcement

Collapse
No announcement yet.

[Physics] Enabling "Simulate Physics" on a moving Pawn.

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

    [Physics] Enabling "Simulate Physics" on a moving Pawn.

    I have a Pawn with a skeletalmesh component which is moving. I override the physics asset in the skeletalmesh to ensure that it is using the correct physics asset for my skeleton.

    Click image for larger version

Name:	Ragdoll.png
Views:	1
Size:	49.6 KB
ID:	1211769

    On key press, I enable Physics simulation and destroy my controller. The pawn then overreacts and spins away (always in the same rough direction) when I just need it to halt it's movement and flip over a few times (it's a motorbike).

    I've Checked the angular/linear damping and mass (in the skeletalmesh component in my Pawn blueprint and in the physics asset). Is there something that I might be missing out? I've set the mass scale so high (it's at 70 atm), but it always seems to flip to the left and then violently up.

    Any suggestions would be greatly appreciated.

    #2
    Does it work correctly when you simulate in PHAT?
    https://www.casualdistractiongames.com

    Comment


      #3
      Originally posted by OptimisticMonkey View Post
      Does it work correctly when you simulate in PHAT?
      Yeah, behaves in the way the rigid bobies, angular/linear damping and mass would make you expect.

      Comment


        #4
        Spawn second unrelated Skeletal mesh -> Enable physics...What happens?
        Is there something special about the skeletal mesh that it repels itself etc?
        Presumably you'd substitute the bike for Static Mesh but it looks too dead?

        Comment


          #5
          Originally posted by franktech View Post
          Spawn second unrelated Skeletal mesh -> Enable physics...What happens?
          Is there something special about the skeletal mesh that it repels itself etc?
          Presumably you'd substitute the bike for Static Mesh but it looks too dead?
          Yeah I tried that test. It spawned the mesh and behaved as expected but didn't inherit the momentum/inertia of the pawn.

          Comment


            #6
            Originally posted by Benni.Lodge View Post
            Yeah I tried that test. It spawned the mesh and behaved as expected but didn't inherit the momentum/inertia of the pawn.
            Grab the velocity / momentum manually and add it as inherited velocity etc, like spawned projectile???

            Comment


              #7
              Originally posted by franktech View Post
              Grab the velocity / momentum manually and add it as inherited velocity etc, like spawned projectile???
              Sadly I think that option is unavailable. I'm using a custom movement component that was made for me, and I don't think it has any of the velocity stuff exposed atm.

              Comment


                #8
                I have encountered similar behavior in the past when the physics bodies on the skeleton were too big.

                It cannot solve the ragdoll so it explodes.

                Try reducing/shrinking the number of physics bodies on the asset.
                https://www.casualdistractiongames.com

                Comment


                  #9
                  Sometimes when I have problems like that I then realise that I have another component in the same blueprint that has collision on but is set to not render and is pushing on my character.

                  Comment

                  Working...
                  X