Disabling a dynamic collision object (SOLVED)

I have a game object with a sprite and a dynamic collision object. Disabling only the collision object doesn’t seem to work; it’s still affected by gravity and the sprite is pulled with it.

msg.post("/ball#collisionobject", "disable")

Am I doing something wrong, or can’t you disable dynamic collision objects separately from the sprite inside a game object?

It should be fine to disable a specific collision object component. Make sure that the URL is correct and that no other collision objects are on the gameobject.

For debugging-purposes, try disabling the sprite component on the same gameobject and see that it works as expected.

3 Likes

You’re right, now it works! After a bit of digging I enable the entire game object in a different place, which must go through and enable all nested objects like sprites and collision objects.

1 Like