Coulomb force #486
Replies: 2 comments
-
Could you show an example? (how it was done in ElementaryCraft) |
Beta Was this translation helpful? Give feedback.
-
My apologies for the late reply.
Because the last version of ElementaryCraft was made using these CodeBlocks, this was way too complicated. Afterwards I realized that this could also be done using just a java-code, but then I had it already implemented. I'm just not sure if this is the best way of implementing the Coulomb force, there are a lot of unnecessary check and redundant calculations. On the other hand, it is good to calculate the electric field, and only calculate the force afterwards, because this saves some computational time. I'll try to work on an example in the next few days. |
Beta Was this translation helpful? Give feedback.
-
Add the coulomb-force to charged particles.
A first try is made to implement this, but it refreshes the electric field every tick. This can be made more efficient by only changing the field when there is a change in the world.
Also have a look on the Wiki under Coulomb Force.
Current branch: Workshop.
For more information, contact @BertJorissen or via Discord BertJorissen#4688 .
Beta Was this translation helpful? Give feedback.
All reactions