Skip to content

Instantly share code, notes, and snippets.

@andrewdolce
Created February 27, 2013 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewdolce/5045147 to your computer and use it in GitHub Desktop.
Save andrewdolce/5045147 to your computer and use it in GitHub Desktop.
call to findTargetTorque()
// Calculate whether we want to go clockwise or
// counter-clockwise to get to target vector, and what the
// desired torque value will be.
var target = ThrusterAIUtils.findTargetTorque(
currentAngularVelocity,
targetAngle,
physics.body.m_invI,
this.maxCCW, -this.maxCW
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment