Skip to content

Instantly share code, notes, and snippets.

// I don't dance now, I make muscle moves...
// Configurable Params
MaxMoveF = 4000
MaxHoldF = 1.334 * MaxMoveF
MaxTorque = 500
MaxHoldTorque = 1.334 * MaxTorque
MaxMoveSpeed = 4.5 // m/s
HillParamA = 0.25 // Coefficient of shortening heat in Hill's muscle model
SetAngularDrag(0)
To add as a Submodule in your git project
Open powershell in the "Assets" directory of your Unity project
Run git submodule add https://github.com/....
cd to the folder you cloned
Run git config core.sparseCheckout true
Open the file "..\..\.git\modules\...\info\sparse-checkout", perferably in vim
Add "Unity/Assets" to the file (or whatever you want to KEEP)
Make sure the file endings are Unix (in vim, you can run set ff=unix)
Save/close your text editor and run git checkout master