I have my own custom character controller. However, I found some issues that would easily be fixed if I could change an axis collision handling can work in. From my understanding Bullet Physics moves your character in the direction of the face normal of what you have collider with. However, I do not want this. For example, I want if the character collides with a triangle which normal is upwards, I want the collision handler to only move the character upwards to solve the constraint. However, if a triangle normal is not upwards then I want the collision handler to only move the character on the X and Y axis.
This can be worked by changing
Code: Select all
setLinearFactor()