dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.89k stars 242 forks source link

#465 Add is_sliding_down_slope field to EffectiveCharacterMovement #470

Closed Jeff425 closed 1 year ago

Jeff425 commented 1 year ago

Resolves #465 This change adds the is_sliding_down_slope field to the EffectiveCharacterMovement output struct for move_shape KinematicCharacterController function

This field will be true when the entity is sliding down at least one slope.

From my testing, this field will be true when sliding into a wall. So if the consumer does not want a player to move while sliding, make sure to check for that edge case.

Jeff425 commented 1 year ago

@sebcrozet Mind assigning a reviewer? Seems like there's a few people interested in this change

sebcrozet commented 1 year ago

Thanks!