From 5afb8eb0976c52a94d6fbb6d9ec43ecb3a63eb19 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 3 Oct 2022 16:54:23 -0400 Subject: [PATCH] -init --- app/dofs/stretch-cursor/og/⧉ | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/dofs/stretch-cursor/og/⧉ b/app/dofs/stretch-cursor/og/⧉ index 4cacb15..903aa8f 100644 --- a/app/dofs/stretch-cursor/og/⧉ +++ b/app/dofs/stretch-cursor/og/⧉ @@ -3,18 +3,16 @@ 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 - cursor = to.pos + dir * stretch * strength + cursor = to.pos + dir * stretch * strength design pointer = false