I've been working on a game and it's going really nice. Got some help from here and I need it again. So I'm making a 2D top-down shooter and I need my enemy to look at the player, and obviously the enemy will rotate in all axis and thus being invincible or will look really weird. So, how do I make it rotate only in the Z axis ? Also if you are going to provide and answer I need it done in UnityScript.
相关问题
- Unity - Get Random Color at Spawning
- Unity3D WebGL Headless not rendering
- Rotating an Object properly around a pivot point g
- Unity3D loading resources after build
- Load Image from Stream/StreamReader to Image OR Ra
相关文章
- Programmatically setting and saving the icon assoc
- Omnisharp in VS Code produces a lot of warnings ab
- Call non-static methods on custom Unity Android Pl
- How can a game created in Unity can run on an Andr
- SVG circle starting point
- How to add Persistent Listener to Button.onClick e
- Placing an object in front of the camera
- Rotate image in Quartz? Image is upside down! (iPh
You just need to set a fixed value at the axis that you don't want to move.
Example, LookAt moving only the Z axis:
If you had made a quickly search on google, you would find it.