Current Position Of Moving Object

Discussion in 'How Can I...?' started by Kevin Cook, Mar 24, 2021.

  1. Kevin Cook

    Kevin Cook Boxer

    Joined:
    Nov 22, 2020
    Messages:
    16
    Likes Received:
    1
    How do I get the current postion of an object that is moving. I have tried this.entity().position() but it only returns the position value of where the object started not where its currently at.

    Thanks
     
  2. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    use this in update function to get current position
    this.entity().position()

    better is to use
    this.entity().worldPosition()
     
  3. Kevin Cook

    Kevin Cook Boxer

    Joined:
    Nov 22, 2020
    Messages:
    16
    Likes Received:
    1
    great...thanks I'll give it a shot
     

Share This Page