Procedural flight battle simulation - call for participation
Hi everyone !
Since blender 3.6 is officially released I started to dig deeper into the darkness of simulations in Geometry Nodes !
A question from @Stanisław Dyrda here in the community brought me the idea to make a flight battle simulation and it started to become alive.
I have a basic starting point which works but still have some stuff to improve. So if you know well geonode and are interested to take part of this R&D you are welcome !
Let’s make great thing together in the CG Boost community 💞
2023-07-12 17-00-57.mp4The main goal was to use a particle system (here is a boid sim with nothing special - I don’t mastering this kind of system) and make instanciated ships shot enemies when they comes into their “target direction” by using a raycast node tracing forward.
*What I managed to do untill now:
_ Establish two enemy camps (the bad guys and the good guys)
_ Calculate the particles velocity to oriente theim on their velocity vector.
(As I’m using a Particle Instance modifier the particles rotation attribute does not exist + the Geometry input of the Simulation Zone does not keep the original particles movements beacause it is only evaluated at the very first frame.
_ Instanciate basic sphere on each particles in order to use them as “detector” for the raycast node (their radius are pretty much based on the ships meshes bounds)
_ Establish some basic battle rules and store needed values
Here, for exemple, a badguys trace a ligne straight forward from its position. If a goodguy’s detection sphere catch the trace then the badguys can attack and the result of the hit socket is stored. Same for the hit location that is stored as the target.
_ Make ships shooting according to their combat state from their weapons location
( Here I used vertex groups on the original meshes )
Here the trick is to use dublicated instanciations of the weapon locations to launch them in the target direction at a certain speed.
_ This last part has been quickly made and should be more interesting since it is about the shots aspect.
*So. What I wasn’t able to do yet.
_ Keep the target detection inside a certain range (avoid “not to close combat”)
_ Most important but hardest part, managed a killing system (sound like an easy thing but trust me it’s not)
_ And a lot of other stuff to make this little thing really cool.
If you feel ready to take part of this development you can download my blend file here:
⚠️ (Blender 3.6)
BattleShips.zip