Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Fix GameObject with respect to other gameobject

Discussion in '2D' started by Cray.x, May 9, 2015.

  1. Cray.x

    Cray.x

    Joined:
    Mar 10, 2014
    Posts:
    4
    Hey Hi guys

    I'm new to unity working on my first game with it. I have made this in 2D.

    As you can see this is a sphere



    I have attached the playerController script, but as soon I try to move it, the GroundCheck and CeilingCheck gameobjects also move due to which the sphere is not able to jump.

    So I'm looking for a technique to fix position of the above gameobjects with respect to the sphere as currently the the above two objects are the child of sphere.

    Your help will be appreciated.