Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rustbucket on January 26, 2015, 03:41:38 PM

Title: setting max torque on a 2d object
Post by: rustbucket 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