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

Question Misalignment

Discussion in 'Physics' started by UchinoYuhi, Oct 3, 2022.

  1. UchinoYuhi

    UchinoYuhi

    Joined:
    Sep 30, 2022
    Posts:
    4
    Hello.
    I try to create a physics simulation environment in Unity.
    But, when I roll my object from the top of the hill, my object deviates from the expected course.
    My object has sixteen spheres collider on the tip of the foot.
    And, these colliders' position is calculated accurately.
    Please tell me the solution to this problem.
     

    Attached Files:

    • Rim.gif
      Rim.gif
      File size:
      96.1 KB
      Views:
      100
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,622
    There's absolutely no way anyone can help you with so little information. If you don't put effort into describing the problem, nobody can put effort into helping you.

    At best, it's unclear what the problem is so we have to guess.
     
  3. UchinoYuhi

    UchinoYuhi

    Joined:
    Sep 30, 2022
    Posts:
    4
    Thank you.
    I try to give more information to this problem.
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,622
    The only thing I can guess is that you expect it to roll as if it were a cylinder rolling which of course it's not, it's only (presumably) an approximation so with spheres on those spikes(?) so it'll only approximately roll.

    Looks like it'd be better being a CapsuleCollider. Of course, it all depends on if it's only interacting with the terrain.
     
  5. UchinoYuhi

    UchinoYuhi

    Joined:
    Sep 30, 2022
    Posts:
    4
    Thank you so much !
    I'm going to follow your advice.
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,622
    Alternately, just spheres on the ends of it. The obvious problem is that it'll collide with stuff outside of what you can see (the ends).
     
    UchinoYuhi likes this.
  7. UchinoYuhi

    UchinoYuhi

    Joined:
    Sep 30, 2022
    Posts:
    4
    I see.
    Your advice is very informative !
    Thank you for answering such an unhelpful question.
     
    MelvMay likes this.