How to Look At Target Position In Unity | Unity 3D Tutorial

Опубликовано: 02 Октябрь 2024
на канале: Devsplorer
5,287
73

This Unity tutorial covers how to rotate 3d objects towards the target position using transform directions or Quaternion LookRotation. In this demo, the arrow that we shoot follows the mouse position in world space. We calculate the direction from the object to the target position and make the object rotate towards it.

This project uses the setting of target shooting with velocity tutorial, but I believe you can find the parts that you need and implement them into your own projects.

🤹‍♀️ I am motivated to create videos on physics and continue with this setting.
If these topics or similar ones that interest you, feel free to let me know in the comments (I am open to other ideas on 3d physics or VR)
My next plans include shooting the object with the trajectory motion, making it pass through the holes then stick to a wall, calculating scores using the collision position on target objects, etc.

👉 Wonderful Assets from KayKit - Mini-Game Variety Pack:
https://kaylousberg.itch.io/kay-kit-m...

👉 Previous Video On Target Shooting
   • How to SHOOT 3D Object TO TARGET Posi...  
👉 Previous Video On Giving Spin To Thrown Object
   • How to SHOOT 3D Object TO TARGET Posi...  
👉 Changing Cursor Texture With Mouse Press:
   • How To CHANGE CURSOR Texture To Show ...  
👉 Similar Shooting Series:
   • Drag & Shoot & 3D Unity Tutorial Series  

#Rotate#Towards#Target

👇
If you want to see more of this kind of videos, please give this one a LIKE and SUBSCRIBE for future ones. Comments & Feedbacks are always appreciated.
👆

🏹 Subscription Shortcut:
   / @devsplorer  

👋 If you are new here check out the CHANNEL TRAILER:
   • Welcome To Devsplorer | Game Dev Chan...  

Here are some written tutorials: https://devsplorer.wordpress.com/
I generally share sneak peeks of the next mechanics 👁‍🗨
Twitter:   / eccegd  
Instagram:   / devsplorer  

Have A Great Day!
See you in the next explorations 🙋‍♀️