Search Unity

Colliders Pushing Object...

Discussion in 'Scripting' started by smitchell, Jan 24, 2013.

  1. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Hi Guys,

    I'm working on a arcade plat former styled game, It's going good. There's only one issue that needs to resolved that hopefully someone can help me with.

    I have jump through platforms which work great, but when the player jumps from underneath at either end of the platforms the collider forces the rigid body away. It's hard to explain I guess.

    Here's a few images to visually explain:

    Here's fine, if I jump the player goes through and lands appropriately.



    Here if I jump the collider pushes the player to the side and doesn't let me land on it..



    Any ideas on how to fix this? It would be greatly appreciated!

    Thanks.
     
  2. OWiz

    OWiz

    Joined:
    Aug 30, 2012
    Posts:
    21
    I think we need more information than a few screenshots.
    For example, what shape are your colliers? Where are they located? How are they all intersecting?
     
  3. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Hi OWiz, thanks for the reply.

    I am using custom colliders, there actually box colliders but when I press play a script generates a new mesh collider for the objects to allow my player to jump through them. Here's a picture to show you what I mean and where there positioned..



    When in play mode:


    Thanks.
     
  4. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Bump ? ? ? Any ideas?

    Thanks.
     
  5. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Bump..

    Thanks