You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: sprite.angle not match pymunk body.angle #1887
Going to re-open this, as we should be auto-handling the negation in the built-in PymunkPhysicsEngine. Namely during the add_sprite and set_rotation functions of it we are not doing this, however when syncing the sprite values to the Pymunk bodies we do. This means generally the sprite is displayed with the correct rotation, but the initially set rotation in pymunk is flipped.
Closing as fixed by #2840. The pymunk engine now negates the angle when adding a sprite and in set_rotation, so sprite.angle and the body's angle match.
Activity
[-]sprite.angle not match pymunk body.angle[/-][+]Bug: sprite.angle not match pymunk body.angle[/+]cspotcode commentedon Aug 26, 2023
Is this because arcade 2.6.17 rotates counter-clockwise, and pyglet rotates clockwise? arcade 3.x.x changed to rotate clockwise, which matches pyglet.
pushfoo commentedon Aug 26, 2023
This is probably the cause. I tried replicating the issue on 2.6.17, but the
PymunkPhysicsEngine.debug_drawmethod doesn't exist in that version.@fe11x Can you please do the following?
arcadein the terminal and paste the output herefe11x commentedon Aug 28, 2023
my way installing arcade @pushfoo
einarf commentedon Sep 26, 2023
This still a valid issue?
einarf commentedon Jan 16, 2024
Closing this for now. Rotations are indeed clockwise now mathing pyglet. You can simply negate the rotation angle when passing it to pymunk.
Cleptomania commentedon Apr 10, 2026
Going to re-open this, as we should be auto-handling the negation in the built-in PymunkPhysicsEngine. Namely during the
add_spriteandset_rotationfunctions of it we are not doing this, however when syncing the sprite values to the Pymunk bodies we do. This means generally the sprite is displayed with the correct rotation, but the initially set rotation in pymunk is flipped.pvcraven commentedon Oct 8, 2026
Closing as fixed by #2840. The pymunk engine now negates the angle when adding a sprite and in
set_rotation, sosprite.angleand the body's angle match.