A laptop power supply can supply a limited amount of power. Conceivably, then, when the computer is running, some of the power must be diverted to the processor and other components, leaving less to charge the battery. (Power usage is roughly 10 to 30 watts, or maybe more if you have a graphics card. In my case, my charger is rated for 65 watts.) Why doesn&#39;t my laptop battery charge while the laptop is in use? is an example of an extreme case. So it's plausible that this would affect charging speed.

So do laptops in fact charge significantly faster when turned off or asleep (while plugged into a sufficient power supply)?


Question: Unity: Rolling a ball around a spherical planet with forces
Answer: Subtract the position of the ball from the origin of the planet, that will give you the directional vector that you want. You can calculate the magnitude of the force you need to apply using simple newtonian gravity.
Newton Gravity

Convert the direction into a unit vector, and multiply the magnitude of the force by the unit vector to create a force vector.