Forum begins after the advertisement:


[Part 2] colliders not colliding

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 2] colliders not colliding

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15066
    Panda Angy
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    so i have both the chunk and the player as trigger so the player does not get booted from the chunk but now all the props with box colliders do not collide with the character how do I fix this. i have tried to make sure they are all on the same layer, have all triggers off just boots my character still and many other things no to avail so now I am looking for help.

    #15069
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    Panda, check and make sure that you have a Rigidbody2D attached to either the props or the character (I recommend adding it to the character). For 2 colliders to be able to collide, you need to have a Rigidbody2D attached to either one of the GameObjects.

    #15079
    Panda Angy
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    yeah i have the rigidbody2d on the my player character I tried it with my enemy character and npc as well but nothing I don’t know if its a layering problem or if I should try to hard code instead. also another question does it matter if I use a capsule collider2d instead of a box or circle collider?

    #15080
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    Try replacing your CapsuleCollider2D with some other collider and see if it works. I’m not very familiar with the CapsuleCollider2D as it was recently added, but it seems to have some special properties that require more specific configuration.

    If that still doesn’t work, I’ll have to trouble you to take a screenshot of the Inspector of the GameObject(s) that are not registering collisions.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: