There is get_rid()
for resources. But there is no get_rid()
for nodes (except, strangely, the single node type CollisionObject2D, which does have it). How do I get RID for any kind of instanced node?
There are many google hits making me think that get_rid()
was perhaps a valid node method in Godot 2.0. It isn't in 3.0.x.
My specific need is to get RID for a MultiMeshInstance to set AABB. Unless someone can tell me otherwise, the only way to set AABB for a node instance (not a mesh) is using VisualServer.instance_set_custom_aabb ( RID instance, AABB aabb )
. But I need RID for the MultiMeshInstance to do so.
I did try VisualServer.mesh_set_custom_aabb()
on the MultiMesh, but that gives me an error telling me that my MultiMesh is not a Mesh (which I knew already). Setting AABB for the original Mesh used in the MultiMesh does not determine AABB of the MultiMesh or the MultiMeshInstance.