Hey, I was wondering how I would detect the location of a point, either its the mouse, or the center of a colliding circle, relative to the rotation of box.
Currently, when I click the stage, a sensor circle is added. Then in the ADD collision method, I check to see if it's colliding with any boxes (they are all rectangular). If it is, then I will apply torque to the box depending on the center of the circle.
see attached image for a clearer representation of my idea
Any help would be appreciated, thanks.
Currently, when I click the stage, a sensor circle is added. Then in the ADD collision method, I check to see if it's colliding with any boxes (they are all rectangular). If it is, then I will apply torque to the box depending on the center of the circle.
see attached image for a clearer representation of my idea
Any help would be appreciated, thanks.