Question by 
               Tom990304 · Mar 23, 2017 at 11:55 AM · 
                rotationrotation axis  
              
 
              How to rotate an object relative to another different object's axies?
 public Rigidbody rb;
 
 void FixedUpdate () {
         rb.AddForce(0, 0, forwardForce * Time.deltaTime);
         rb.transform.Rotate(rotationSpeed * Time.deltaTime, 0, 0);
         }
 
               When I am rotating rb, I want it to rotate forwards while movnig forward. But when the object only rotate towards its x-axies, and it looks weird when the object no longer face forward. Is there any method to rotate the object relative to another object's x-axies so it will always rotate forward no matter what direction it faces?
Thanks very much!
               Comment
              
 
               
              Your answer