Add a sprite in the corner of an object matter physics

Hello. I am using matter physics. I would like to add a sprite to the corner (top left, bottom left, it doesnt matter) of another sprite. the sprite that has the corner I want to put the sprite on is rotated with .angle, and the angle of that sprite often changes. If I did a bad job explaining the question, please ask to clarify.

ngl chatgpt helped me with this one.

var blahblahblah;
blahblahblah = sprite1.getBottomLeft(); //can also do getTopLeft or getBottomRight etc
sprite2.x = blahblahblah.x;
sprite2.y = blahblahblah.y;