Wind Simulation based on Vector Fields
Recap:
Our previous wind simulation was based on forces (with constand directions and random magnitude) being applied on the planks of the rope bridge.Process:
We decided to see if the wind simulation would improve if we implemented wind with vector fields.
The vector field we used was imported from JangaFX VectoreyGen plugin.
Since there was only a limited number of vector fields to choose between we chose a vector field we thought would match our project.
We chose to work with the inwards vector field which can be seen below:
F : R3 --> R3
F(x, y, z) = (-x, -y, -z)
The vector field (imported from the plugin) applies forces onto rigid bodies depending on where the they are located. The result can be seen in the gif below:
In order to make the forces more "wind-like" the vector field was given random rotation and translation during run-time.
The result can be seen in the gif below:
Conclusion:
We finally decided to use the previous implementation of the wind-system instead. This is because we actually managed to develop the previous one from scratch rather than importing pre-made packages from the Unity Assets Store.
Kommentarer
Skicka en kommentar