Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Baby Dragon inside Cube doesnt work

Discussion in 'Getting Started' started by thesaxtonator, Aug 11, 2019.

  1. thesaxtonator

    thesaxtonator

    Joined:
    Jul 28, 2019
    Posts:
    1
    Hello

    I have used the Baby Dragon Prefab

    When I place this inside of a cube, which has a box collider the dragon moves outside of my plane

    However, if I place it inside a sphere it does obey the plane borders, but rotates inside the sphere

    How do I either prevent the rotating or force a box collider to obey borders?

    Paul
     
  2. Niborsom

    Niborsom

    Joined:
    Oct 7, 2018
    Posts:
    4
    I believe you can add a rigidbody then go to freeze positions and freeze the rotation axes.
     
unityunity