Search Unity

Model Turning Problem

Discussion in 'Formats & External Tools' started by mbahadirb, Jul 30, 2010.

  1. mbahadirb

    mbahadirb

    Joined:
    Jul 8, 2010
    Posts:
    21
    Hi

    I am currently working on a spaceship game and realised a problem-which is probably my model. When I rotate my ships using rotate comand in script, they dont rotate around their center point but around their corner and it doesnt look good on small ships. How can I fix that problem?

    Thanks Have Fun
    Bahdir Boge
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    An object rotates around its anchor point. You could move the anchor point to the ship's centre in the 3D modelling app. Alternatively, put it inside a parent object in Unity and position the child so its centre is at the parent's anchor point. Then, use the parent for all movement and rotation.
     
  3. mbahadirb

    mbahadirb

    Joined:
    Jul 8, 2010
    Posts:
    21
    That is exactly what I am looking for. Thanks:)