https://github.com/habrador/unity-ballistics-tutorial
Learn how to make realistic bullets with bullet drop in Unity
https://github.com/habrador/unity-ballistics-tutorial
ballistics bullet-drop bullet-physics gamedev physics-simulation unity unity-library unity-tutorial unity3d unity3d-tutorial
Last synced: about 2 months ago
JSON representation
Learn how to make realistic bullets with bullet drop in Unity
- Host: GitHub
- URL: https://github.com/habrador/unity-ballistics-tutorial
- Owner: Habrador
- License: mit
- Created: 2020-02-15T13:14:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T09:11:03.000Z (over 5 years ago)
- Last Synced: 2025-04-15T04:17:37.480Z (about 2 months ago)
- Topics: ballistics, bullet-drop, bullet-physics, gamedev, physics-simulation, unity, unity-library, unity-tutorial, unity3d, unity3d-tutorial
- Language: C#
- Homepage: https://www.habrador.com/tutorials/unity-realistic-bullets/
- Size: 225 KB
- Stars: 63
- Watchers: 3
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Ballistics Tutorial
Tutorial on how to make realistic bullets in Unity
YouTube video showing the result:
[](http://www.youtube.com/watch?v=eA60HDTnfnQ "Bullet physics in Unity video")
Link to the tutorial: https://www.habrador.com/tutorials/unity-realistic-bullets/
Notice that the code is not exactly the same as in the tutorial because I've learned some things over the years. But the basic concept is the same. The main change is that I added the factor from the wind in the forces that affects the bullet instead of affecting the velocity of the bullet. This should be more physically accurate. I also added a force called lift.
Follow me on Twitter for more Unity stuff: https://twitter.com/eriknordeus