# AuthorHerc

I’ve started exploring programming and how computers work around the time I entered highschool and got hooked pretty much straigt away. 4 years of computer science intensive classes later, I started uni and a year after that landed a job working as a lowly code monkey for a webdev company. It’s the path I’ve walked for the past five or six years, always learning new tips and tricks, from code monkey to senior software engineer, expanding my reach in the tech world.

## Tech Review: LG 48CX

T

This story stars back in March of 2020. Back when the by now famous COVID-19 pandemic was getting started my job switched everyone from working in the office to working from home every day. I was never a fan of working from home, mainly due to the fact that all my best and comfortable equipment was at the office but all that was about to change.By April it became aparent that we would be working...

## Prologue: Closing words

P

We’re nearing the end of what I’ll call the prologue of this series. We’ve covered some basic implementation, some basic physics and there’s two or three more things we need to cover before we can go into building this game. Let’s start with talking about the scale of the game. Given that the goal is to be able to simulate an entire galaxy, with more or less a few...

## Integrating the future

I

Last time we went over the orbits and everything nice that comes with it. Whilst implementing the code for those calculations I’ve observed something peculiar. The orbits the objects are following are more or less the same as the ones calculated in the initial state, but not quite.Naturally, I went debugging, and everything seemed fine. Still, the bodies would slowly drift out of their...

## Elliptical orbits summary

E

We’ve covered a lot of things over the past few months. Mostly about gravity and gravitational attraction. We’re going to switch gears now and talk about orbits. Let’s start with the limitatons of what we’re trying to achieve:– the orbits within a solar system are coplanar (within the same plane)– orbits are elliptical and stable, circular orbits being a subset...

## I lied, there’s more physics

I

Last time we wrapped up the basic implementation of all the building blocks we need to be able to create a solar system and update it at a data layer level and then render it in Unity. This time we’ll start focusing on how we’re actually going to create these solar systems.The end goal is to be able to procedurally generate them from scratch. Before that though, we need to be able to...

## Simulating the solar system #2

S

Now that we have the basis set up to start simulating the solar system it is time to get into more interesting bits.I’m going to write a quick updater that will update the positions of these bodies from their start one whenever the game is started. Very important here is to keep in mind that this updater will run in paralel in a different thread than the Unity one. This allows us to decuple...

## Simulating the solar system #1

S

Last time we left off having figured out what the physics equations behind everything will look like. Now it is time to get to coding. First off, I like to keep my code separated into small classes/components each doing one very specific thing. It is suprising how many complex behaviours can be broken down into these very simplistic components. Let’s make sure we have a way to reference...

## Newton was almost right

N

In this day and age it is clear that Newtonian physics works well at a small scale but not perfectly when trying to calculate trajectories of planets and such. Nonetheless, it is still a good enough aproximation for a game and as such that’s what I’ll be using for this next phase. Essentially, what I’ll talk about today amounts to creating a solar system replica in C#. For this...

## A new dawn

A

For quite a while now I’ve had this idea of an open ended game. A game where the main point is to just play the game. There is no PvP, there is no end goal just pretty things to look at and a relaxing easy gameplay that you can go through whilst thinking about your day. In other words, imagine Civilizations but without the wars, without the religious victories, no turn based mechanic and an...

## Points over time

P

We’re generally bad at estimating Intuitively we all think we are more than capable to estimate how long something is going to take or how long that couch is. The internet howerver is full of stories proving that to be false time and time again.People in general are bad at estimating things in absolute measures such as hours, meters, kilograms and so on. In regards with development planning these...