Gravitational attraction and pushing

Godot 4.2.1

Hello! I have a trouble making something like white hole and black hole. I don’t really know how to make an attraction like black hole attracts and pushing like white hole pushes. I wan’t to use it in portals that will teleport player to the other level. Thanks in advance

Area2d, it can create internal forces when objects enter their collision shape. You could also probably customize the forces depending on how real you want to make it.

1 Like