I'm wondering how others would approach kinematics for characters in a platformer.
At the moment i'm using a circular body with fixed rotation and high friction as the controlled-characters physical presence. For left/right motion i set the linear velocity to the perpendicular of the average of collision normals, and for jumping i just add an impulse iff the current frame has a collision with a relatively upward normal.
That said, i'm not entirely happy with how the kinematics "feel". The friction in particular feels wrong. Are any of you controlling your characters physics more directly?
Also, when interacting with other dynamic objects, the characters body still affects their trajectory. How do i get collision restitution to only occur for the character-body?
At the moment i'm using a circular body with fixed rotation and high friction as the controlled-characters physical presence. For left/right motion i set the linear velocity to the perpendicular of the average of collision normals, and for jumping i just add an impulse iff the current frame has a collision with a relatively upward normal.
That said, i'm not entirely happy with how the kinematics "feel". The friction in particular feels wrong. Are any of you controlling your characters physics more directly?
Also, when interacting with other dynamic objects, the characters body still affects their trajectory. How do i get collision restitution to only occur for the character-body?