# Collison setting for Character and ground?

Hey people

I created a Character with control settings (but no rig or anything else) and a Plane with different slopes to test the control settings I made.
First problem: I noticed that the Character slides off of the slope if I donât move him.
2nd problem: The character doesnât adapt the ground, he stays in the same angle as if heâs on a flat groundâŚ
What do I have to change in the sttings to solve the problems?

Character settings:

and the floor settings:

I hope someone can help me with my problems

this is the reason I do not use dynamic controllers, but most everyone else swears by them

I think the main issue here is you need to set friction relatively highâŚhopefully others will chime in a give a better responseâŚbut if I were you I would play with the friction settings.

Problem 1:
Weâll need to know how youâre moving the character to fix this. If youâre just using the âlocâ on logic bricks, then your object wonât obey physics properly. The general thing to do is either to:

• Apply zero speed to the player when youâre not wanting him to move
• Apply a force to reduce the players speed when you donât him to move

The servo motion logic brick is a rather handy one, as it accepts zero as a valid target speed, and you can select how much force it applies on which axis to try achieve the target speed.

Problem 2:
Dynamic objects do not respond to torques, only to forces. There are two ways to overcome this issue:

1. Change the physics type to rigid body. This does present the potential issue of the character falling over (it will happen)
2. Use a raycast and the hitnormal to set the playerâs orientation.

I think one of the constraint logic bricks does this (Force Field with Rot Fh enabled. Set itâs force to zero so it only effects the rotation, enable per, set direction to -z, set a distance for how far away to detect a surface).

This answer is free, and is regarded as an extended reference to BGE.
Hi.
The type of physics - a âcharacterâ, created for simple games, and illustrative works. He is not perfect. If you want to solve those questions that you asked - only âdynamicâ physics, and Python.
I made for you a small and simple example - tank01_test.blend (705 KB)

The first question I decided was simply balancing the weight of the object - line 26-31
The second question was decided on the lessons of ThaTimst3r - lines 14-15
https://www.youtube.com/watch?v=Qwpox2maSi8Of course this is the simplest solution, it is possible to implement it more professionally.

Good luck in creative work.
Thank you for attention.

p.s. If the issue is resolved, please put before the title of the topic - SOLVED, so it is more correct in relation to users and administrators of the forum

The character doesnât slide anymore I increased the friction to 1
But I have another problem now: the character bounces when he walks down a slopeâŚ

For the best âŚ creativity, you put a simple example, and we will try to add to it. Itâs something âŚ a simple esoteric. You created the basis, albeit with a problem, and we added to it - but the basis is yours. But do not forget to thank the assistants - simple - Thank you.
It would be better so - here is my example, help me PLEASE solve such problems:rolleyes:. And after solving the problem add - it is decided for all who do not know this decision.

maybe check the material elasticity settings? (its just beside friction )