1 decade ago by Patrick
I am writing some like a pinball machine.
The problem is, for the paddle entity (basically a rectangle), I change the currentAnim.angle to a negative value and set the currentAnim.pivot at one end instead of center, to swing the paddle. After that, I realized that the paddle does not hit the balls (collision not detected) while it swings.
I cannot find any function of Entity to make the Entity reposition itself in an angular way such that collision detection will work.
Can anybody help me ?
Thanks in advance.
The problem is, for the paddle entity (basically a rectangle), I change the currentAnim.angle to a negative value and set the currentAnim.pivot at one end instead of center, to swing the paddle. After that, I realized that the paddle does not hit the balls (collision not detected) while it swings.
I cannot find any function of Entity to make the Entity reposition itself in an angular way such that collision detection will work.
Can anybody help me ?
Thanks in advance.