diff options
-rw-r--r-- | .build.yml | 4 | ||||
-rw-r--r-- | src/Skeleton.cpp | 12 | ||||
-rw-r--r-- | src/Skeleton.h | 5 |
3 files changed, 7 insertions, 14 deletions
diff --git a/.build.yml b/.build.yml index dcdbd78..c68399f 100644 --- a/.build.yml +++ b/.build.yml @@ -8,6 +8,4 @@ packages: sources: - https://git.sr.ht/~cnx/blackshades tasks: - - build: | - cd blackshades - zig build -Drelease-fast=true + - build: zig build -Drelease-fast=true --build-file blackshades/build.zig diff --git a/src/Skeleton.cpp b/src/Skeleton.cpp index 4a6910b..ae194d3 100644 --- a/src/Skeleton.cpp +++ b/src/Skeleton.cpp @@ -468,12 +468,12 @@ void Skeleton::reload() joints[i].oldposition = joints[i].position; } - forwardjoints[0] = 7; - forwardjoints[1] = 3; - forwardjoints[2] = 8; - lowforwardjoints[0] = 17; - lowforwardjoints[1] = 3; - lowforwardjoints[2] = 19; + forwardjoints[0] = leftshoulder; + forwardjoints[1] = abdomen; + forwardjoints[2] = rightshoulder; + lowforwardjoints[0] = righthip; + lowforwardjoints[1] = abdomen; + lowforwardjoints[2] = lefthip; num_muscles = 29; MuscleData muscles_data[num_muscles]; diff --git a/src/Skeleton.h b/src/Skeleton.h index 1f55966..fbd1d8b 100644 --- a/src/Skeleton.h +++ b/src/Skeleton.h @@ -13,11 +13,6 @@ #define constraint 1 #define muscle 2 -//head, neck, left shoulder, left elbow, left wrist, left hand - //right shoulder, right elbow, right wrist, right hand, - //middle, left hip, right hip,groin - //left knee,left ankle, left foot, right knee, right ankle, right foort - #define head 0 #define neck 1 #define leftshoulder 2 |