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
Reproduction:
Drag an image into the scene
Make it a composite item
Enter the composite item
Give the image a polygon component and physics component
Move the object to 10, 10 inside the composite
Step out of the composite
Move the composite to 5, 5
Load the Scene in LibGdx with a Box2D debugRenderer
See that the physicsObject is at 10, 10 World coordinates although it should be at 15, 15
See that the textureComponent is at 15, 15 World coordinates where it belongs.
Changing processBody so that the physicsBody's Transform is set to the right place ( parentTransformPosition + transformPosition ) moves the body to the right place (15, 15) but moves the textureComponent to the wrong place (20, 20).
The text was updated successfully, but these errors were encountered:
A solution would be to move the transforms offset computing from Overlap2dRenderer to a TransformSystem system that will be processed before the PhysicsSystem and Overlap2dRenderer.
@azakhary I'm ready to implement this solution if it works for you.
Reproduction:
Drag an image into the scene
Make it a composite item
Enter the composite item
Give the image a polygon component and physics component
Move the object to 10, 10 inside the composite
Step out of the composite
Move the composite to 5, 5
Load the Scene in LibGdx with a Box2D debugRenderer
See that the physicsObject is at 10, 10 World coordinates although it should be at 15, 15
See that the textureComponent is at 15, 15 World coordinates where it belongs.
Changing processBody so that the physicsBody's Transform is set to the right place ( parentTransformPosition + transformPosition ) moves the body to the right place (15, 15) but moves the textureComponent to the wrong place (20, 20).
The text was updated successfully, but these errors were encountered: