Hi,
There is a player actor inherited from ACharacter. Player navigates the maze some parts of wich supposed to have zero gravity. So I set BrakingDecelerationWalking = 0 and BrakingFrictionFactor = 0 on CharacterMovement.
This causes player to “float”. In order to make actor bounce off the walls I added OnComponentHit event handler for capsule component. In the event handler new velocity is calculated and set to movement component. The problem is that OnComponentHit is called multiple times while actor is near wall. It make it slide along the wall instead of bouncing. If I add some “cooldown” and ignore several consequtive events actor starts bouncing. Still in some cases it sticks to the wall. The method is not reliable.
Is there a way to improve it? Or may be there is completely different approach?