Rotating a collision object in a script does not work (SOLVED)

I rotate an object:

go.animate(".", “euler.z”, go.PLAYBACK_ONCE_FORWARD, 30, go.EASING_OUTELASTIC, 5)

The sprite rotates as expected, however the attached collision component (box) does not change rotation (checked with debug on for physics, the box remains with original rotation 0 while the sprite rotates).
When I rotate the object manually in the editor, the collision box rotates correctly.

What’s wrong?

In the properties view of the collision object, set its “Type” to “Kinematic”.

1 Like

Thanks, it helped. I missed the comment on that in the manual…

1 Like