Search Unity

  1. Unity 2019.2 is now released.
    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.