playMaker

Author Topic: Getting velocity of object as a single figure?[SOLVED]  (Read 1581 times)

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Getting velocity of object as a single figure?[SOLVED]
« on: August 03, 2016, 02:42:31 PM »
Is there a way to get the velocity of an object as a single number? I can get separate velocities for x,y,z but I want to know how fast an object is moving overall.
« Last Edit: August 17, 2016, 07:01:44 AM by jeanfabre »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Getting velocity of object as a single figure?
« Reply #1 on: August 03, 2016, 02:55:57 PM »
yeah get the magnitude

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Re: Getting velocity of object as a single figure?
« Reply #2 on: August 03, 2016, 04:10:17 PM »
How do I do that?  The only function I see labelled "magnitude" is something called "Clamp magnitude"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Getting velocity of object as a single figure?
« Reply #3 on: August 04, 2016, 03:06:03 AM »
Hi,

 you can get the Custom Action GetGameObjectSpeed on the Ecosystem. It will give you access to this value.



Bye,

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Getting velocity of object as a single figure?
« Reply #4 on: August 04, 2016, 06:28:25 AM »
Sorry, I was thinking about Get Agent Velocity, which I've used and has a Magnitude variable.

Glad Jean had another solution