setSpriteCollisionShape ignores rotation if using an offset!
-
If you set a collision shape using five parameters like this, rotation works as expected:
setSpriteCollisionShape(sprite, shape, width, height, rotation)
However, calling the function like this, with the two offset parameters causes Fuze to ignore the rotation:
setSpriteCollisionShape(sprite, shape, width, height, rotation, xOffset, yOffset)
I made a small program that illustrates the problem:
ID: NHCZ7MND5C
-
Thanks for the report! A fix is in the works.
-
As a temporary workaround, try this:
setSpriteCollisionShape(sprite, shape, width, height, rotation) sprite.collision_offset_x = x_offset sprite.collision_offset_y = y_offset