- Home /
 
              This question was 
             closed Oct 30, 2019 at 05:43 AM by 
             arashsh. 
            
 
            Tilt Enemy when moving to left and right(loop)
hi How enemy plane move left and right(loop) and rotate 45/-45 degrees when moving
public float delta = 4f; private Vector3 startPos;
void Update () {
    transform.position -= new Vector3(0,0 , speed * Time.deltaTime);
      
     Vector3 v = startPos;
      v.x += delta * Mathf.Sin (Time.time * speedx);
      transform.position = v;
 
              
               Comment
              
 
               
              It could be me, but I think it might be better to include some extra information to your question. I'm getting a sense of what you are trying to ask, but its not completely clear for me. As I said, could be me, but extra info never hurt anyone (that might not be true, but lets keep it in this context :P)
Follow this Question
Related Questions
How to rotate/tilt an object to match angle of slope? 2 Answers
Rotating a tilted camera to look around 1 Answer
Camera rotation around player while following. 6 Answers
Tilt camera while moving smoothly 0 Answers
rotate and tilt at the same time 1 Answer