summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/subsume
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-10-10 00:00:55 -0500
committerepoch <epoch@thebackupbox.net>2020-10-10 00:00:55 -0500
commitfe9ad894000ff986cd642d23ac4762e97d5b1ccc (patch)
tree1e253ac02dc7d3339b60ca68d9bfca24cbd3ef7e /share/hackvr/examples/subsume
parent19feecae5124e5eb4c8a2f2dfd300e94e59b9d9f (diff)
parent4982876f0d021e4637f6db500063169477fe7289 (diff)
downloadhackvr-fe9ad894000ff986cd642d23ac4762e97d5b1ccc.tar.gz
hackvr-fe9ad894000ff986cd642d23ac4762e97d5b1ccc.zip
Merge branch 'master' of ssh://batou.thebackupbox.net:65432/hackvr
Diffstat (limited to 'share/hackvr/examples/subsume')
-rw-r--r--share/hackvr/examples/subsume/arms.hackvr7
-rwxr-xr-xshare/hackvr/examples/subsume/test.sh11
2 files changed, 18 insertions, 0 deletions
diff --git a/share/hackvr/examples/subsume/arms.hackvr b/share/hackvr/examples/subsume/arms.hackvr
new file mode 100644
index 0000000..de31aba
--- /dev/null
+++ b/share/hackvr/examples/subsume/arms.hackvr
@@ -0,0 +1,7 @@
+base addshape 1 2 0 0 0 0 8 0
+mid addshape 2 2 0 0 0 0 4 0
+mid move 0 8 0
+base subsume mid
+end addshape 4 2 0 0 0 0 2 0
+end move 0 4 0
+mid subsume end
diff --git a/share/hackvr/examples/subsume/test.sh b/share/hackvr/examples/subsume/test.sh
new file mode 100755
index 0000000..67139ac
--- /dev/null
+++ b/share/hackvr/examples/subsume/test.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+cat arms.hackvr
+
+# these start all straight-up, rotate counter clockwise as rotation increases, and
+# at these rates of rotation they should all be curled in on themselves at the bottom.
+while true;do
+ printf "base rotate 0 0 +1\n"
+ printf "mid rotate 0 0 +2\n"
+ printf "end rotate 0 0 +3\n"
+ sleep .1
+done