- Home /
 
               Question by 
               seb7000 · Oct 01, 2010 at 01:09 PM · 
                rotationrotateconfigurablejoint  
              
 
              Configurable joint around 2 axis
Hi every one, I would like to rotate a configurable joint around 2 axis. I actually do this :
var configurableJoint = GetComponent(ConfigurableJoint); configurableJoint.targetRotation= Quaternion.AngleAxis( angle, Vector3.right );
The "Axis" of my joint is : X : 0 - Y : 1 - Z : 0.
So the object rotatate around Y with the "angle' variable.
Now I want to rotate it around Y and Z simultaneously. The "Axis" of my joint become : X : 0 - Y : 1 - Z : 1. But I don't understand how to script it (the angle can be different around Y and Z)
Thanks for help
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                