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