Go.animate re-enabling collision object [SOLVED]

This is an odd one. When running the below code, my collision object is disabled as expected and the scale of the object is reduced to 0.5 also as expected. But once go.animate completes, the collision object becomes enabled again and will no longer respond to further “disable” messages. Am I missing something?

msg.post("#collisionobject", "disable")
go.animate(".", "scale", go.PLAYBACK_ONCE_FORWARD, vmath.vector3(0.5, 0.5, 0), go.EASING_LINEAR, 0.5)

I don’t think it would cause the collision object to re-enable itself, but what if you try setting Z scale to 0.5 instead of 0?

1 Like

Well spotted! That seems to fix it.
Not sure why I was getting the collision object problem but never mind now.
Thanks

1 Like