mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-04 21:37:57 +02:00
fix stroke to handle 180 deg turns
This commit is contained in:
@@ -337,7 +337,6 @@ module stroke(
|
|||||||
);
|
);
|
||||||
v1 = unit(path2[i] - path2[i-1]);
|
v1 = unit(path2[i] - path2[i-1]);
|
||||||
v2 = unit(path2[i+1] - path2[i]);
|
v2 = unit(path2[i+1] - path2[i]);
|
||||||
vec = unit((v1+v2)/2);
|
|
||||||
mat = is_undef(joint_angle)
|
mat = is_undef(joint_angle)
|
||||||
? rot(from=BACK,to=v1)
|
? rot(from=BACK,to=v1)
|
||||||
: zrot(joint_angle);
|
: zrot(joint_angle);
|
||||||
|
Reference in New Issue
Block a user