Last active
December 14, 2015 06:29
-
-
Save andrewdolce/5042565 to your computer and use it in GitHub Desktop.
weight factors
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
target[0] = tgtF * weightF; | |
target[1] = tgtR * weightR; | |
target[2] = tgtT * weightT; | |
// ... | |
current[0] += thruster.localForce[0] * coeff * weightF; | |
current[1] += thruster.localForce[1] * coeff * weightR; | |
current[2] += thruster.torque * coeff * weightT; | |
// ... | |
dirAlongLine[0] = thruster.localForce[0] * weightF; | |
dirAlongLine[1] = thruster.localForce[1] * weightR; | |
dirAlongLine[2] = thruster.torque * weightT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment