Announcement

Collapse
No announcement yet.

Limit velocity?

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

    Limit velocity?

    I'm working with the blueprint based ball demo and I'm trying to find a way to limit the max velocity of the ball. I have added a force depending on the input axis so that the player can get some control of the ball in the air. While on the ground the velocity is limited by the max angular velocity of the physicsball blueprint. Is there another setting that I'm missing somewhere, or do I have to set the velocity myself in blueprint?

    #2
    We don't have a setting to limit linear velocity, this is something you will have to do yourself.
    Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
    Twitter: @EpicJamesG

    Comment


      #3
      I think I got it:



      I split the vector so that I could isolate the x,y velocity from gravity.
      Attached Files

      Comment


        #4
        Brilliant solution, worked like a charm! Thanks mate!

        Comment


          #5
          Made it a little shorter:
          Click image for larger version

Name:	UE4Editor_2017-05-07_13-45-32.png
Views:	1
Size:	207.6 KB
ID:	1127711

          Comment


            #6
            Raise the dead
            Inphidel / Brian - Developer of Ultraball
            http://www.ultraballgame.com

            Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

            Comment


              #7
              Even shorter :-)

              Thank you all for these solutions, it's quite elegant and works great.

              added the Z to it myself as I needed it for my helicopter.
              ​​​​​​​Click image for larger version

Name:	
Views:	0
Size:	109.1 KB
ID:	1437137

              Comment

              Working...
              X