Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Character's head weight

Discussion in '2D' started by lucasolasz, Nov 24, 2022.

  1. lucasolasz

    lucasolasz

    Joined:
    Nov 16, 2022
    Posts:
    2
    Hello,

    I'm facing this problem with my character. I would like to resolve this bug.
    As I am new to the Unity platform, I cannot understand the cause of the problem.

    From what I can understand, Unity's physics is putting a greater "weight" on the character's head.

    How do i solve this?

    Thanks for the help.

    Evidences:

     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,333
    Sprites are nothing to do with physics, They don't change the center-of-mass, only colliders do. The only mass is the BoxColldier2D.

    What you're seeing is the corner of the box catching the ground and causing torque (rotation). Have you asked that it never rotate? If not then go to the Rigidbody2D -> Constraints and constrain the Z rotation (one of its 3 degrees of freedom).
     
    lucasolasz likes this.
  3. lucasolasz

    lucasolasz

    Joined:
    Nov 16, 2022
    Posts:
    2

    It worked!

    Evidence:



    Thank you my friend.
     
    MelvMay likes this.