The problem is that the character’s controller does not stand on the surface of a static object, but rather sinks into it. This has undesirable side effects. But at the same time, going up the steps works!

I noticed that if I set upAxis == -1, then the element appears on the surface, and it looks like it should, but the climbing the stairs stops working…

Code clippings:
Character controller set:
CC riggid body:
let body = new AMMO.btPairCachingGhostObject();
body.setWorldTransform(transform);
body.setCollisionShape(colShape);
// DISABLE_DEACTIVATION == 4
body.setActivationState(4);
body.activate(true);
this.world.getBroadphase().getOverlappingPairCache().setInternalGhostPairCallback(new AMMO.btGhostPairCallback());
body.setCollisionFlags(body.getCollisionFlags() | btCollisionObjectCollisionFlags.CF_CHARACTER_OBJECT); // 16
this.world.addCollisionObject(body);
CC collider:
let collider = new AMMO.btCylinderShape ( new AMMO.btVector3(metadata.params.radius, metadata.params.halfHeight, metadata.params.radius) );
CC btKinematicCharacterController:
let characterController = new AMMO.btKinematicCharacterController(
body,
collider,
0.35, //stepHeight
1 //upAxis
);
characterController .setUseGhostSweepTest(true);
characterController .setGravity(9.8 * 3); // default 9.8*3
characterController .setMaxSlope(Math.PI / 3); // default Math.PI / 4
this.world.addAction(characterController );
Floor set:
Floor riggid body:
let mass = 0;
let motionState = new AMMO.btDefaultMotionState( transform );
let rbInfo = new AMMO.btRigidBodyConstructionInfo( mass, motionState, colShape, localInertia );
body = new AMMO.btRigidBody( rbInfo);
this.world.addRigidBody(body);
body.setCollisionFlags(body.getCollisionFlags() | btCollisionObjectCollisionFlags.CF_STATIC_OBJECT); // 1
Moreover, this penetration occurs precisely in the lower part of the character’s controller. From the side, everything touches as it should.
In this example, dynamic bodies are scattered. They can be pushed by pressing on them from the side. But if you stand on top of them, penetration occurs..

P.S. If my question seemed inappropriate or bad, please do not immediately put a negative in my reputation, it is better to write, and I will correct, clarify the statement.