- Home /
Rotate box by pushing it
Hi devs, I got a big problem, which is probably tiny for you.
My problem is, I want to rotate left the box, when I push it from the right side. It can be a headbutt action just like SuperMario. How can I nail this box onto the scene and make it rotate whaen I hit it. What joint should I use? Do I need to writme some script?
Please help me.
Thanks
I think you should use hinge joint and play around with its anchor.
Answer by Franky_Cranky_Man · Jul 23, 2014 at 04:06 AM
Your answer can be found here:
http://unity3d.com/learn/tutorials/modules/beginner/2d/hingejoint2d
Good luck!
Your answer
Follow this Question
Related Questions
Joint does not rotate back to original position. 0 Answers
Configurable Joints pass through colliders 2 Answers
How to fix this strange child 3D rotation? 0 Answers
Animation mismatch 1 Answer
Attaching game objects with joints - Matching angles 0 Answers