In this Unity tutorial, I want to show you how to give a spin to 3d objects in the direction of the movement using the angular velocity of the rigid body. How we do this is simple, but while we are at it I want to give some background info on AngularVelocity in Unity.
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.
🌀 In addition to spinning, this tutorial includes small touches on Angular Velocity general and cross product.
While working on this I learned a lot, hope I can also provide this to you 😊
🤹♀️ 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 rotating the object towards the target then shooting it (would be good for pointy objects), shooting it 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.
🌟 LINKS
⭐ HyperPhysics - Rotation Vectors
http://hyperphysics.phy-astr.gsu.edu/...
⭐ Unity Docs - Cross Product
https://docs.unity3d.com/ScriptRefere...
⭐ Wikipedia - Angular Velocity
https://en.wikipedia.org/wiki/Angular...
👉 Wonderful Assets from KayKit - Mini-Game Variety Pack:
https://kaylousberg.itch.io/kay-kit-m...
👉 Changing Cursor Texture With Mouse Press:
• How To CHANGE CURSOR Texture To Show Mouse...
👉 Similar Shooting Series:
• Drag & Shoot & 3D Unity Tutorial Series
👉 Cylinder Scaling Tutorial
• How To Scale Object By Other Objects In Un...
👉 Previous Video On Target Shooting
• How to SHOOT 3D Object TO TARGET Position ...
#Spin #AngularVelocity #Physics
👇
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 Channel T...
00:00 Intro & Demo & Warning
00:58 Rotating Towards Movement Direction (Code)
02:20 Angular Velocity & Calculating Angular Velocity (Demo Scene)
03:51 Cross Product Demo Scene
05:03 Last Demo & Outro
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 🙋♀️