oriels/app/dofs/stretch-cursor/og/⧉.txt
spatialfree 53acd59bd4 ->
2022-10-04 11:58:20 -04:00

20 lines
No EOL
252 B
Text

# 2018.10.06 -> 2022.10.04 ->
input
vTo
vFrom
data
stretch
cursor
frame
mag = (vTo - vFrom).mag
stretch = max(mag - deadzone, 0)
dir = v3.dir(vTo, vFrom)
cursor = vTo + dir * stretch * strength
design
deadzone = 0.1
strength = 3