Search Unity

Orc asset (prefab) not working in unity 5.6.7

Discussion in '2D' started by JuanMa26, Apr 15, 2019.

  1. JuanMa26

    JuanMa26

    Joined:
    Apr 15, 2019
    Posts:
    3
    Hi, I'm new to Unity.
    I downloaded a prefab element from unity asset store and I tried using it in a game I'm building, but when I insert it to the scene and add to it RigidBody and BoxCollider components and run the game, the orc exploits (the pieces that make the prefab are scattered around, not together; see attached image).
    The page description says it's compatible with Unity 4.3 and higher, so I don't know what I'm doing wrong.
    I'm adding the RigidBody and BoxCollider components to the first element of the orc prefab, not individually to each one of them.
     

    Attached Files:

  2. Green11001

    Green11001

    Joined:
    Apr 14, 2018
    Posts:
    397
    try removing the rigidbody and box colliders to see if it fixes itself. If it does you did something wrong with those.
     
  3. JuanMa26

    JuanMa26

    Joined:
    Apr 15, 2019
    Posts:
    3
    No, I tried already removing the rigid body and box colliders and when I run my game the orc still exploits.
     
  4. Green11001

    Green11001

    Joined:
    Apr 14, 2018
    Posts:
    397
    try reataching the sprites and stuff?
     
  5. JuanMa26

    JuanMa26

    Joined:
    Apr 15, 2019
    Posts:
    3
    I tried doing that and not it doesn't exploit, but when I play the game the orc grows a lot and then when I begin moving it grows smaller and it's head moves down, covering its body, and when I change the side it is facing, just by inverting the axis it begins at another place away from its last position.