Search Unity

You got my letters!

Discussion in 'Scripting' started by marty, Jun 27, 2005.

  1. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Translate, Rotate and LookAt are great additions to the transform scripting in Unity 1.0.1 - way to go guys!

    I'd like to suggest one addition though, if it's not too late.

    It would be nice if, in addition to Space.self and Space.world, we could also do Translate and Rotate calls relative to a specified object.

    For instance, for Rotate:

    Rotate (0,10,0, Space relativeTo = Space.model(theSun))
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    What exactly do you expect the Rotate Space.model (theSun) to do?

    Will it change the position of the object being rotated?
    Like RotateAround?

    Is the euler angles or / axis relative to the Space.model (theSun) object?
     
  3. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Yeah, I'm basically suggesting that you could just get rid of RotateAround. It just doesn't seem to make sense to have a completely separate command for translation/rotation relative to another object.