Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Capsule collider 2D - Working as intended?

Discussion in '2D' started by iRSS, Apr 12, 2020.

  1. iRSS

    iRSS

    Joined:
    Mar 27, 2020
    Posts:
    9
    Hi,

    I'm using Unity 2019.3.9f1 and I'm trying to add two capsule colliders on player. One with vertical direction and other with horizontal direction.
    I just can't make like this, both become horizontal or vertical. Already searched without a good reply.
    The behaviour is like this(why?) or is broken?
    Thanks!
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,623
    Yes.

    Like what? You've not said what's wrong. All you've said is that you've got two capsules and that "One with vertical direction and other with horizontal direction" which I presume is the orientation property on the capsule. Beyond that, all we know is "I just can't make like this, both become horizontal or vertical." which means what exactly?

    Without info on what you're actually doing, anyone who would want to help you would be left guessing. You'd stand a better chance of getting help if you were to provide some details on what you're doing including screenshots.

    Please take the time to provide as much relevant info as possible if you want help.
     
  3. Fatcat-Games

    Fatcat-Games

    Joined:
    Nov 9, 2016
    Posts:
    34
    Try placing the capsule colliders on separate child game objects parented to the Player game object.
     
    iRSS likes this.
  4. iRSS

    iRSS

    Joined:
    Mar 27, 2020
    Posts:
    9
    Thanks for the reply. That works, too bad that I can't put one horizontal and one vertical without separate them.
     
  5. iRSS

    iRSS

    Joined:
    Mar 27, 2020
    Posts:
    9
    I put one Capsule Collider 2D with horizontal direction and resized, them I put one with vertical direction.
    When I try to resize the vertical one, the capsule can't resize to vertical direction, only to horizontal.
     
    r41d3n7 likes this.
  6. iRSS

    iRSS

    Joined:
    Mar 27, 2020
    Posts:
    9
     
    r41d3n7 likes this.