Sixze / ALS-Refactored

Completely reworked and improved C++ version of Advanced Locomotion System V4.
MIT License
977 stars 273 forks source link

Climb Physics Issue #493

Closed Jinkel92 closed 6 months ago

Jinkel92 commented 6 months ago

There is a bug when trying to climb onto an object with physics, in this case it is a vehicle: Vídeo sin título ‐ Hecho con Clipchamp

xkamronx commented 6 months ago

To add on to this (since I'm playing around with the same thing - adding vehicles)

The sprinting force also seems wildly different. If I walk in to a physics vehicle, it doesn't move. If I sprint in to it, it goes flying like a beach ball.

Edit - appears to only be during the initial 'velocity' action for the sprint. If you hit it going full speed it doesn't really move, but if you hit it during the impulse on begin sprinting it bounces.

Sixze commented 6 months ago

I have fixed the issue that was messing up the actor's rotation here: 00d05bdaffe393eb0e3f8f8f7d5ca29f28b6b837, but speaking of physics, while the actor is mantling, his capsule still keeps colliding with the environment and as a result it pushes the car away. To fix this you can, for example, disable the actor's collision with the car and afterwards re-enable it, which you can do in the OnMantlingStarted and OnMantlingEnded functions.

Jinkel92 commented 6 months ago

I have fixed the issue that was messing up the actor's rotation here: 00d05bd, but speaking of physics, while the actor is mantling, his capsule still keeps colliding with the environment and as a result it pushes the car away. To fix this you can, for example, disable the actor's collision with the car and afterwards re-enable it, which you can do in the OnMantlingStarted and OnMantlingEnded functions.

Ah!, thanks for hotfix :)