I’m trying to see what information is within a table of a convex shape.
What’s in docs:
local function get_shape_meta()
local sphere = physics.get_shape("#collisionobject", "my_sphere_shape")
-- returns a table with sphere.diameter
return sphere
end
what I’m trying:
function init(self)
local shape = physics.get_shape("#collisionobject", "hull_main")
print(shape)
end
ERROR:SCRIPT: main/main.script:2: No shape with name 'hull_main' found
stack traceback:
[C]:-1: in function get_shape
main/main.script:2: in function <main/main.script:1>
