-init
This commit is contained in:
parent
a8459bd428
commit
5afb8eb097
1 changed files with 3 additions and 5 deletions
|
@ -3,18 +3,16 @@ input
|
||||||
from = [pos, ori]
|
from = [pos, ori]
|
||||||
|
|
||||||
data
|
data
|
||||||
cursor
|
cursor = [0, 0, 0]
|
||||||
|
|
||||||
init
|
|
||||||
# fade in if needed
|
|
||||||
|
|
||||||
frame
|
frame
|
||||||
vec = to.pos - from.pos
|
vec = to.pos - from.pos
|
||||||
len = vec.length
|
len = vec.length
|
||||||
|
|
||||||
stretch = max(len - deadzone, 0)
|
stretch = max(len - deadzone, 0)
|
||||||
dir = pointer ? to.ori * v3.fwd : vec / len
|
dir = pointer ? to.ori * v3.fwd : vec / len
|
||||||
|
|
||||||
cursor = to.pos + dir * stretch * strength
|
cursor = to.pos + dir * stretch * strength
|
||||||
|
|
||||||
design
|
design
|
||||||
pointer = false
|
pointer = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue