Skip to content

Instantly share code, notes, and snippets.

@andrewdolce
Last active December 14, 2015 06:29
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/5042565 to your computer and use it in GitHub Desktop.
Save andrewdolce/5042565 to your computer and use it in GitHub Desktop.
weight factors
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