playMaker

Author Topic: setting max torque on a 2d object  (Read 1136 times)

rustbucket

  • Playmaker Newbie
  • *
  • Posts: 5
setting max torque on a 2d object
« on: January 26, 2015, 03:41:38 PM »
Hi all,

I have a game where the player controls a 2d ball. When you tilt the device left or right I'm adding a certain amount of 2d torque to the ball to get it to roll in the requested direction.

The issue I'm trying to solve is I want to limit the maximum speed with which the ball rolls. Is there a way to save the current torque amount and do a conditional? Or do I have to measure velocity instead and limit that amount?

Thanks, Russell