Hi there,
Is possible to convert quad object to physics ?
I can convert sprite object by calling
this.physics.add.existing(gameobject, 0);
but its not working with quad.
I need quad object because i can use Skew X,Y, and on the end of animation i want to convert it to physics.
Meshes and quads don’t have an origin component, so Arcade Physics can’t figure out their position. A dirty way to work around this would be to put displayOriginX and displayOriginY properties on your gameobject. Note that the transformations made on a quad are purely visual, so it’s up to you to calculate what values align the body correctly.
2 Likes