open-project-1 icon indicating copy to clipboard operation
open-project-1 copied to clipboard

Bugfix slime hop

Open pointfivetee opened this issue 4 years ago • 2 comments
trafficstars

Issue: https://github.com/UnityTechnologies/open-project-1/issues/426 Forum thread: https://forum.unity.com/threads/player-automatically-hops-on-slime-critter-when-walking-into-it.1107092/

Improved collision detection for a handful of game objects.

  • Raised the slime critter's collider slightly, which eliminates the glitchy hopping behavior when the chef tries to walk near one.
  • Decreased the height of the plant critters capsule collider, allowing the chef to hop over it without crashing into an invisible barrier.
  • Gave the bush a tall capsule collider that "turns off" (becomes a trigger) when the player enters a trigger zone above the bush. This eliminates the hopping problem while still allowing the chef to jump over/onto the bush normally.

To test, enter a scene and try navigating near the objects listed above. When walking into them, the chef shouldn't hop or slide around. The chef should also be able to jump over/onto them without hitting an invisible barrier or hovering in midair. (You may want to disable the critters' state machines first so they don't keep trying to bite you.)

pointfivetee avatar Jun 17 '21 18:06 pointfivetee

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 17 '21 18:06 CLAassistant

Hi @pointfivetee , thank you for opening the PR to fix the issue :) I just wanted to mention that we are working on fixing the character controller first since we have some unpleasant situations like mentioned on the issue or when the character gets stuck so we will try to fix that first and then we can work on the minor issues with the colliders on the objects. Thanks!

amel-unity avatar Jun 30 '21 12:06 amel-unity