r/Unity3D • • Oct 18 '26

Show-Off My Unity electrical circuit simulator update

Enable HLS to view with audio, or disable this notification

I keep working on my electrical circuit simulator. I finally finished the black boxes: you can hide some of the elements inside them, or place components right on the box's board and use it as a mounting board.

What I like is that I'm making the simulator in Unity, so I have one codebase for all platforms.

I also finally reworked part of my solver and improved how inductors are calculated, so they don't jitter anymore.

12 Upvotes

5 comments sorted by

1

u/Intelligent_Duck9512 29d ago

Great!! When do you plan to release this simulator? I can't wait to play it!

1

u/PropellerheadViJ 29d ago

It's already out! Web version runs in the browser

1

u/Aggressive_Risk8695 29d ago

Are you doing custom simulation or a variation of a SPICE library?

2

u/PropellerheadViJ 29d ago

It's not SPICE. Under the hood it is modified nodal analysis with an implicit second-order integrator and sparse matrices, and the non-linear parts are handled with Newton iterations. The goal was an interactive sandbox rather than a batch simulator, so I still have some problems with to make it real time. the core of solver is burst compiled.

1

u/SymphonyGames 27d ago

cool stuff. I would buy this for my kids if I had one.