How do I use replace_by? It seems to not be able to replace anything when done as $object.replace_by($"NewObject", false) or even $"object".replace_by($"NewObject", false). Is there another way to swap one object for another? I tried with replace_by_instance, but that doesn't work and produces errors.
I cannot find any tutorials on swapping objects.
I want to swap one rigid body with a static body, while said object is a body that entered an area and was detected by it.