Quote:
Originally Posted by blueblur
Hi, I would like to request a feature for this extension: Could we resolve the collision between the wandering witch and infected? Running infected who collide with witch will push witch with an extra speed, which looks like the witch is "shifting away".
|
All common infected and witches collisions are handled by "NextBotGroundLocomotion::ResolveZombieCollis ions" so just disabling this feature for witches would "fix" the issue. However, the actual problem lies
here. The locomotion system sets momentum based on
how much the position has changed since the last update and adds velocity accordingly. The gained velocity should decay over time due to friction but this doesn't happen because for some reason forward friction is disabled by default (nb_friction_forward) and even if you enable it, it only works
when your actual velocity is in the opposite direction of the desired velocity.
Quote:
Originally Posted by blueblur
But I don't think it is a nice way. If we start from the collision itself, what would be the better way to neutralize the collision?
|
I think the best way to try to fix it is to enable forward friction and patch
the check but this would probably be time consuming and I don't know why it was implemented this way.
Using SetAbsVelocity is probably the most efficient approach, imo.