How To Rotate Object With Mouse Drag While Moving It In Unity | Unity 3D tutorial

Опубликовано: 23 Март 2026
на канале: Devsplorer
2,667
19

Rotate Object With Mouse Drag While Moving It by incrementing AngularVelocity property of the rigid body. Use mouse positional change with GetAxis functions and a random value for z increment.

Videos Related To Dice Series:
Set Random Color To Materials
   • Random Color In Unity Using Gradients | Un...  
Detect Upper Face Of Dice Tutorial
   • Detect Upper Face Of Dice In Unity Using V...  
Move Objects With Mouse Drag Tutorial
   • How To Move Objects With Mouse Drag in Uni...  
Rotate Objects With Mouse Drag Tutorial
   • How To Rotate Object With Mouse Drag While...  

At the end of the tutorial, there is a devlogish part, going through two kinda qualified approaches to moving object rotation with the mouse drag.

0:00 Intro & Demo
1:02 Rotate Object With Mouse Drag While Moving
3:52 Tutorial Outro
4:03 Devlog

#Rotate #Moving #Object

If you want to see more of this kind of videos, please give this one a LIKE and SUBSCRIBE for the future ones. COMMENTS are always appreciated.

I hope this will help you and if there was a point not clear let me know in the comments.

Confetti Particle System With Default Unity Assets | Unity Particle System Tutorial
   • Confetti Particle System With Default Unit...  
Divide Cubes Into Smaller Cubes Using Transform Functions In Unity | Tutorial
   • Divide Cubes Into Smaller Cubes Using Tran...  
How To Make Automatic Shooter In Unity | Spawn & Shoot With Physics | Tutorial | One Script
   • How To Create Auto Shooter In Unity | Unit...  
Simple Drag & Shoot mechanics developed with Unity,
   • How To Drag And Shoot 3D Objects in Unity ...  
SteamVR tutorials,
   • Unity SteamVR Setup For Unity 2019 | Unity...  

Here are some written tutorials https://devsplorer.wordpress.com/
I generally share sneak peeks to next mechanics:
Twitter:   / eccegd  
Instagram:   / devsplorer  

Also, If you would give feedback on the overall performance of the video you would make me very happy. I plan to make more videos and want to improve along the way and each feedback is very valuable.

Thanks for reading up to this point and see you in the next explorations :)
Have a rotating day!