I'm trying to force an object to move to a certain point, and stay there, without using LookAt.

This is what I've got, so far. I am trying to move my object to the position of wak.

public Transform airEye;
public Transform airship;

public float move_speed;
public Vector3 wak;

// Update is called once per frame
void Update () 
    wak = new Vector3( 
        airEye.transform.position.y + 3,
        airEye.transform.position.z );
    // airship moves smoothly to wak point ?

How do I make an object move to a certain position?

  • 3
    \$\begingroup\$ It's no clear what you need... do you want it to go to a certain location, or do you want it to stay at a certain location? \$\endgroup\$ – Vaillancourt Dec 19 '16 at 19:16
  • \$\begingroup\$ Unclear !! airship moves to certain point (wak), and then stay there ? \$\endgroup\$ – user43474 Dec 20 '16 at 7:58
  • \$\begingroup\$ @Tyyppi_77, note that the top two answers specifically mention that the asker has been the one to make changes to the code. \$\endgroup\$ – Gnemlock Jan 4 '17 at 22:53
  • 2
    \$\begingroup\$ @Gnemlock you need to chill, man... \$\endgroup\$ – Vaillancourt Jan 5 '17 at 0:43
  • \$\begingroup\$ I think you guys may be grossly misinterpreting the intent of my edit. @AlexandreVaillancourt, I found it was easier to work off the prior edit to make the question make more sense, plain and simple. Feel free to read my answer on the meta, where I have listed all of the comparisons I made in making the edits. \$\endgroup\$ – Gnemlock Jan 5 '17 at 1:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.