Unity — Creating Bullet Holes via Raycasting

It’s bullet time…

Instantiating bullet holes is easy. Here’s the trick:

The above script will create a ray that goes from the camera to the center of the screen. Instantiating the bullet hole rotation is done with LookRotation.

--

--

Unity and Flutter developer interested in creating mixed-reality applications.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Richard Morgan

Unity and Flutter developer interested in creating mixed-reality applications.