Game Development Reference
In-Depth Information
Firing non-instant bullets
In the previous recipe, we implemented a basic form of firing that will work for many
cases. The exit velocity for a bullet is usually around 300 m/s (or close to 1000 feet/s) and
might seem near-instant at close range. For ranges over 30 m (approximately 90 feet), the
delay starts to get noticeable though, and more realistic games might need another model.
In this recipe, we'll look into a type of bullet that travels in the game world. It's still an in-
visible bullet, but it can easily be visualized if required.
Search WWH ::




Custom Search