How do I make a magnetic field that attracts different objects? It is for my game Magnetism.
Offline
ZapLightning wrote:
How do I make a magnetic field that attracts different objects? It is for my game Magnetism.
when gf clicked forever point towards [magnet v] move (however many steps you want depending on speed) steps
Offline
No like angry birds space... Gravity...
Offline
Offline
What you need is to create a script that tells the desired object to turn towards the gravity simulating object the closer it gets...
Offline
Use the inverse square law:
when gf clicked forever point towards [a massive object v] move ((size)/(distance to [a massive object v])) steps point towards [another massive object v] move ((size)/(distance to [another massive object v])) steps //...
Offline