From ec595d9e20cb42505db37523527b8f7ba5083ca0 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 3 Oct 2022 17:28:53 -0400 Subject: [PATCH] final stretch-cursor pattern revision --- app/dofs/stretch-cursor/og/⧉ | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/app/dofs/stretch-cursor/og/⧉ b/app/dofs/stretch-cursor/og/⧉ index 8179fbc..70a4f50 100644 --- a/app/dofs/stretch-cursor/og/⧉ +++ b/app/dofs/stretch-cursor/og/⧉ @@ -1,24 +1,18 @@ input - to = [pos, ori] - from = [pos, ori] + tipTo = [pos, ori] + tipFrom = [pos, ori] data - cursor = [0, 0, 0] + cursor = [0, 0, 0] frame - vector = to.pos - from.pos + vector = tipTo.pos - tipFrom.pos length = vec.length + dir = vector / length stretch = max(length - deadzone, 0) - dir = slerp( - vector / length, - to.ori * v3.fwd, - pointer - ) - cursor = to.pos + dir * stretch * strength design - pointer = 0 deadzone = 0.1 strength = 3 \ No newline at end of file