Announcement

Collapse
No announcement yet.

Get world velocity?

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

    Get world velocity?

    Is there such a thing as 'get world velocity' of a pawn?

    If my e.g paper2d character stands on a moving platform 'get velocity' will return [0,0,0] which is obviously not its world velocity, and I can't find anything that'll give me this data.

    Does anyone know of an easy way to get this? Or if it's not easily accessible? Or a hard way to get it?

    Thanks.

    #2
    I think you want to use the node called "Get Velocity".

    Click image for larger version

Name:	9f90583c19164b55b837be55ccf5f8f6.png
Views:	1
Size:	75.8 KB
ID:	1125210

    Should work with paper 2d too.

    Hope it helps.
    Main channel:
    https://www.youtube.com/channel/UCGC...o9s3YcA/videos

    Comment


      #3
      Its normal, when your character is standing on a flying thing, if your character dont move, its velocity will be 0. I think u should get velocity of the moving platform instead of the character.

      Comment


        #4
        Let's go a step further. If they are standing still and your getting velocity. To what means are you using it for? Velocity is relative like a parked car on the earth is going pretty fast but says zero mph
        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


          #5
          I'm not at a computer to try this but say you run a tick on this

          Tick - self get world location set locationA delay 1sec, self get world location set locationB ... LocationA-LocationB -length

          This should return your velocity per second?
          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

          Working...
          X