Electrostatic simulation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • placid
    New Member
    • Mar 2008
    • 1

    Electrostatic simulation

    I'm trying to make a simple game that involves a physical simulation of electric charges and i was wondering if there was some sort of electrostatics simulation library for python, and if python is even fast enough to run something like that in real time (i'd be having a number of charged shapes with spline boundaries interacting/colliding in real time). I considered using python with a C library/module, but again i don't know of anything that would do the trick, even if i have to program it myself some sort of example code would be handy.
    (i was planning on using python because i'm a relatively new programmer and its the only language that doesn't have all sorts of "amusing" quirks that drive me up the wall, after having been forced to do C and Fortran 95 in class this is a Good Thing(tm) :P)
    Thanks for any thoughts/hints
  • raubana
    New Member
    • Feb 2008
    • 55

    #2
    You are lucky i found you!
    There is not one made, but it's not all that hard to make!
    All you need is
    (1)a random genarator (for random sparks),
    (2)to draw on a surface a line based on the direction of the spark,
    (3)objects it will be atracted to,
    and(4) a command that calculates distance between two points( for sparks that only jump when one object is close to another)

    That's all the time i have now to explain it, but i know you could make this easliy!

    Comment

    Working...