runit = {
now;
if (running) {
d3.select(anim)
.select(".bones")
.select("Coordinate")
.attr(
"point",
walker
.getLineMarkers(250)
.map((a) => [
[a[0].x, a[0].y, a[0].z],
[a[1].x, a[1].y, a[1].z]
])
.toString()
);
let markers = walker.getMarkers(250);
d3.select(anim)
.selectAll(".joints")
.nodes()
.forEach(function (transform, i) {
d3.select(transform)
.select("transform")
.attr(
"translation",
`${markers[i].x} ${markers[i].y} ${markers[i].z}`
);
});
}
}