ziggyStocky
Drag to turn it round. Standing, it does moves of its own.
Render it yourself
The smallest page that draws ziggyStocky on your own site: the drawing code of the collection, its recipe as JSON, and a loop that lets it move.
<canvas id="ziggyStocky" width="640" height="400"></canvas>
<script src="https://objects.phlo.tech/objects.js"></script>
<script>
fetch('https://objects.phlo.tech/recipe/ziggyStocky').then(r => r.json()).then(recipe => {
const O = PhloObjects, R = O.quadruped.make(recipe)
O.draw.init(document.getElementById('ziggyStocky'))
let x = 0, last = performance.now()
const frame = now => {
const dt = Math.min(.1, (now - last) / 1000), speed = 1
last = now
x += speed * dt
O.quadruped.step(R, { x, z: 0, dir: 0, speed, steer: true }, dt)
O.draw.frame({ x: R.x, y: .4, z: 0, yaw: .7, pitch: .35, dist: 3.2 })
O.draw.ground(R.x, 0)
O.quadruped.draw(R)
requestAnimationFrame(frame)
}
requestAnimationFrame(frame)
})
</script>