How do I make a magnetic field that attracts different objects? It is for my game Magnetism.
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:
whenclicked
foreverpoint towardsa massive object ▼movestepssize/distance toa massive object ▼point towardsanother massive object ▼movestepssize/distance toanother massive object ▼...
Offline