In the documentation written for craft.capsule, the syntax specified is:
myShape = myEntity:add(craft.shape.capsule, radius, height)
Yet the example listed for that syntax is:
“-- create a new entity
e = scene:entity()
e:add(craft.rigidbody, DYNAMIC, 1)
e:add(craft.shape.capsule, 1, vec3(0,0,0))”
With the last parameter being a 3D vector which wouldn’t seem to make sense for height. Is the last parameter actually supposed to be a 3D offset position from the center of the entity as is written in the documentation for the craft.shape.sphere documentation? That would seem to make more sense.