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
In my game, I have a scenario where (simple) polygons are created dynamically in parts from vertices.
However, I am facing what appears to be a bug with the physics between these Polygons.
Take the below image of 2 polygons (showing vertices ordering via numbers).
I have recreated this example that shows a Polygon in two parts but when they collide together the behaviour is extremely strange, see the video below.
poly-issue.webm
As you can see above, once the two polygons collide one is strangely thrown around.
Does anyone know what might be going on here? This is just one example but I have other polygons also facing the issue.
See below for a codepen recreation including all vertices used etc (using phaser + matter) and some additional information embedded in the pen.
Here is a more basic concave split in two halves with slowed speed and debug stats printing on the canvas. Need full screen to see all details. Codepen Example 2
In my game, I have a scenario where (simple) polygons are created dynamically in parts from vertices.
However, I am facing what appears to be a bug with the physics between these Polygons.
Take the below image of 2 polygons (showing vertices ordering via numbers).
I have recreated this example that shows a Polygon in two parts but when they collide together the behaviour is extremely strange, see the video below.
poly-issue.webm
As you can see above, once the two polygons collide one is strangely thrown around.
Does anyone know what might be going on here? This is just one example but I have other polygons also facing the issue.
See below for a codepen recreation including all vertices used etc (using phaser + matter) and some additional information embedded in the pen.
Codepen Recreation
The text was updated successfully, but these errors were encountered: