playMaker

Author Topic: Rotational Torque Velocity?  (Read 3404 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Rotational Torque Velocity?
« on: May 15, 2013, 03:00:53 PM »
How do I get the velocity of an object's rotation?

For instance I can Add Force something in a direction and use Get Velocity to measure it's speed. How do I do this for rotations? I don't see how to use Get Velocity with Add Torque for this purpose.

I really just need some number to represent its rotation speed and scale properly, not necessarily be an accurate speed or anything.

Thanks
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Rotational Torque Velocity?
« Reply #1 on: May 16, 2013, 02:48:16 PM »
Hi,

 To get the speed of any value changing over time is simply a matter of getting the delta change on each frame and divide it by the delta time.

 so, have a fsm that gets the delta rotation ( the current rotation - the last one), and also get the deltatime ( using the action "getTimeinfo"), your rotation speed with be Delta rotation/delta time.

 Try to play around with this, meanwhile, I'll see if I can do a custom action to do that tomorrow. Please bump this next week if you haven't heard back. a bit pressed at the moment :)

bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Rotational Torque Velocity?
« Reply #2 on: May 16, 2013, 02:52:30 PM »
I figured something along those lines was how I could do it, but was hoping there was another way.

I'll keep experimenting and try that out.

Thanks
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Re: Rotational Torque Velocity?
« Reply #3 on: July 03, 2013, 11:20:15 PM »
Hey Jean,

Just bumping this thread, a custom action would be great. Any chance of doing this for us?

Cheers,

Simon

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support