GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Display Text and Linear velocity

jhewelljhewell Posts: 2Member
I am having trouble using DisplayText to show Linear Velocity. I tried setting the text to magnitude( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y ), but it always reads 0. Any ideas?

Comments

  • CobraCobra Posts: 160Member
    Try creating an actor attribute, constraining its value to magnitude( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y ), and then using DisplayText to show that attribute.
  • jhewelljhewell Posts: 2Member
    That did it. Thanks!!
This discussion has been closed.