x: N, y: N

Weight Constant: m/s2

Write a function (in Javascript) which returns the force vector (in N) at a given position, time and on a body of given mass and charge

```
function force(px,py,t,m,c)
{
```

`}`

Welcome message goes here

CloseName | |

Type | |

Radius | |

Width | |

Height | |

Color | |

Mass | [Kg] |

Charge | [C] |

Inertia | |

Position | x: y: |

Angle | |

Velocity | x: y: |

Acceleration | x: y: |

Ang. Velocity | |

Ang. Accel | |

Code | |

x | N |

y | N |

Weight constant | m/s2 |

Color | |

Stiffness | |

Damping | |

Rest Length | |

Attached to: | |

Body 1: | |

Body 2: | |

Position | x: y: |

Position 1 | x: y: |

Position 2 | x: y: |

Force | x: y: |

Torque | |

Color | |

Body: | |

Position | x: y: |

Body1: | |

Body2: | |

Position1 | x: y: |

Position2 | x: y: |

Angle | |

Rest Length | |

Local Position | x: y: |

Position | x: y: |

Color | |

HTML | |

Size | x: y: |

Position | x: y: |

Color | |

Size | Width: Height: |

Object | |

Property | |

Body | |

Local Position | x: y: |

Enable? | |

Gravitation Constant | |

Enable? | |

Coulomb Constant | |

Enable? | |

Earth's g |

Type | |

Time Step | |

Apply Constraints? | |

Use Velocity Model For Constraints? | |

Drift Correction? |

Center | x: y: |

Color | |

Space Scale | |

Time | |

Frame Delay | |

Show Crosshair? | |

Show Grid? |