Created
May 22, 2019 00:13
-
-
Save DataGreed/a5ed4d3eb3f2be576a07cf58a0dd7d1b to your computer and use it in GitHub Desktop.
fix lookAt position
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bullet.transform.rotation = Quaternion.Euler( 90, 0, 0 ) * Quaternion.LookAt( target.transform.position - bullet.transform.position ) ; | |
| // OR | |
| //bullet.transform.rotation = Quaternion.LookAt( target.transform.position - bullet.transform.position ) * Quaternion.Euler( 90, 0, 0 ) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment