oriels/app/dofs/twist-cursor/pattern.txt
2023-02-16 04:26:59 -05:00

6 lines
No EOL
194 B
Text

# 2021.10.15 -> 2023.02.16 ->
rel = LookRotation(mainHand.rot * forward)
twist = Angle(rel * up, hand.rot * up) / 180
twist = Max(twist - 0.05, 0)
cursor = hand.pos + hand.rot * forward * twist