How to make the hit test?

what to do when I hit one object and it faces the opposite direction?

try
if (this.hits(other object name)) {
other object name.rotation = 180
}
of coarse other object name is the name of the object it hits

1 Like

also welcome @Je_Salcedo

1 Like