Created
February 27, 2013 04:45
-
-
Save andrewdolce/5045147 to your computer and use it in GitHub Desktop.
call to findTargetTorque()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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