- Home /
 
               Question by 
               kingofmidas · May 07, 2018 at 05:41 PM · 
                unity 5rotationphysicsstick  
              
 
              Rotation with fixed position . ,
How can I turn a stick so that one end is fixed. And it is necessary for the stick to stop at a certain point., I want to create STICK HERO game clone . Thanks
               Comment
              
 
               
              Answer by anthot4 · May 08, 2018 at 11:32 AM
look at transform.eulerangles:
https://docs.unity3d.com/ScriptReference/Transform-eulerAngles.html
and then you can limit the rotation using mathf.clamp. https://docs.unity3d.com/ScriptReference/Mathf.Clamp.html
Your answer
 
 
             Follow this Question
Related Questions
How to get Steering Wheel Rotation angle? 1 Answer
Slowly rotate a body whilst adding a force to its rigidbody 0 Answers
Car tutorial physics models rotating randomly? 1 Answer
Transform a gameobject y rotation to another gameobject y rotation 1 Answer
How to Rotate Character and move in direction character is facing? 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                