Physic Object Issue

Please assist me,

I am writing a simple game learnt from scroll city tutorial.

I added a cup that serve as gift

I want a situation where the player will earn a point if it hit the cup BUT gameover when hit mosquito

Everything is working well

BUT

Any time the target hit the cup, It lose position; that is it will start rotating

I want the target to maintain it position after hitting the cup as the game continue.

please, attached is complete code and I know that physic may be the cause.

help make the target to maintain it position after hitting the cup

Help correct the mistake. Thanks.

If objects colide then they usually rotate :slight_smile: if you want player to pass through cup but make cup still detecting collisions then you must set cup property .isSensor to true (after creating physics body)

If objects colide then they usually rotate :slight_smile: if you want player to pass through cup but make cup still detecting collisions then you must set cup property .isSensor to true (after creating physics body)