- Camera look direction
- Use to calculate relative rotation to transform.rotation
- Move direction
- Use to calculate relative rotation to transform.forward
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
using UnityEngine; | |
public class HeadLook : MonoBehaviour | |
{ | |
[Header("Configs")] | |
[Range(0.0f, 1.0f)] | |
public float headLookWeight; | |
private Animator animator; | |
private Vector3 lookAtPosition; |
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
"modaledit.keybindings": { | |
"\n": [ | |
"lineBreakInsert", | |
"cursorDown", | |
"cursorHome" | |
], | |
" ": "modaledit.enterInsert", | |
"y": "removeSecondaryCursors", | |
// Selection mode on/off | |
"s": "modaledit.toggleSelection", |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import math | |
angle = math.radians(35) # Arm offset angle | |
t = math.tan(angle) # Store tangent |
Hardware prices from McMaster-Carr
2020 brackets, rails, belt, and pulleys from AnyCubic/Uxcel/similar on Amazon
Motors from StepperOnline
Bearings from VXB or similar
Qty | Item | Unit Cost | Total Cost |
---|
- M3 - 2.8mm tight threaded, 3.0mm threaded, 3.3mm clearance
- M5 - 5.5mm threaded
- M8 - 8.0mm threaded, 8.5mm shoulder
- 608 - 22.3mm
- 2020 - 20.3mm
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import math | |
Motor= ["X", "Y", "Z"] # Motor axes | |
class Vector: |
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
#!/usr/bin/env bash | |
while read line | |
do | |
iface=$(cut -d':' -f2 <<< $line | tr -d '[[:space:]]') | |
mtu=$(sed -nr 's/^.* mtu ([^ ]+) .*$/\1/p' <<< $line) | |
echo $iface: $mtu | |
if [[ "$mtu" -eq "8950" ]] |
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
#!/usr/bin/env python | |
def count_change(amount): | |
return cc(amount, 5) | |
def cc(amount, kinds_of_coins): | |
if(amount == 0): | |
return 1 |