#How to construct a collision shape with transform in script for MeshLibrary ?

2 messages · Page 1 of 1 (latest)

onyx gulch
#

I'm trying to build a mesh library in script to use it in GridMap, and i met a problem about setting shape for item.
For some purpose ,I want the collision shape have some position transform. But I don't know how to construct a " Shape3D followed by a Transform3D"
i "print(mesh_library.get_item_shapes(id)) " to see how it looks like and mimic it but it didn't work ,the collision shape still stick on(0,0,0)

onyx gulch
#

ok ,after take a close look on actual meshlibrary resource, i finally realize its 2 array item with different type next to each other. And now it work just fine.🫡