Home > Net >  Can the player have a heavier weight?
Can the player have a heavier weight?

Time:12-13

My question is maybe unclear, but I'll explain it through the picture I attached. So, what I'm asking is, how can I have the player get more affected by the gravitation, so it falls off when only a small part is colliding? I tried to increase the mass, but nothing changed by that. Answers are appreciated!

enter image description here

Even if I scale the box collider down to the minimum, nothing changes. enter image description here

CodePudding user response:

I managed to find the solution. I had to freeze then unfreeze the rotation on the Z axis inside the rigidbody component. Might have been a smal little bug or something. Thank you all for the answers!

CodePudding user response:

To clarify your title: You don't seem to want "heavier weight", you want the center of gravity to actually matter.

Assuming you don't want to implement this logic yourself, you need to attach a Rigidbody to your player object.

The collider components don't perform physics simulation, only collision evaluation.

Rigidbodies are generally not the default option because if you go this route, you have to be more careful with general physics interaction between your player and other objects. I'm fairly certain the default PlayerController also won't function with a Rigidbody, so you will have to reimplement that as well.

CodePudding user response:

You can change the strength of the gravity in Edit>Project Settings>Physics

  • Related