SuperCharacterController icon indicating copy to clipboard operation
SuperCharacterController copied to clipboard

Player sticking to walls

Open timminkov opened this issue 6 years ago • 12 comments

If you brush up against a wall in the demo scenes, the character "sticks" to the walls and needs quite a bit of force to be pulled off. This is especially an issue if you're falling from heights and accidentally hit a wall.

Is this by design?

timminkov avatar Aug 25 '17 00:08 timminkov

All scenes? Which scene specifically? The walls in the test area scene are part of the ground mesh, perhaps it's an issue specifically mesh colliders.

FullstackJack avatar Aug 25 '17 03:08 FullstackJack

Create a box mesh and see if that still causes issues. I'm using boxes for invisible walls and those seem to work fine.

FullstackJack avatar Aug 25 '17 03:08 FullstackJack

It's the main test scene (with all the different colored geometry). I can't use boxes unfortunately as I've created a mountain-y terrain in blender. Need to use a mesh collider.

timminkov avatar Aug 25 '17 08:08 timminkov

In addition, I sometimes fall through the ground. It can happen often at corners with large slope differences.

timminkov avatar Aug 25 '17 09:08 timminkov

Also - The pushback seems to bug out at extreme angles and push my character continuously upwards.

timminkov avatar Aug 25 '17 09:08 timminkov

Does your scene have a TempCast layer? Add that layer per the instructions in the PDF documentation. I didn't know it needed one at first and I was having all sorts of weird collision errors including player falling through and player jutter when going up ramps. It took a few hours of trial and error, but now a capsule with player scripts seems to traverse my high poly terrain just fine. If you have steep terrain, perhaps your mesh is not a high enough resolution. Experiment with high and low poly terrain. You can export your height map, change resolution of mesh and reimport heightmap.

FullstackJack avatar Aug 25 '17 15:08 FullstackJack

My terrain is 100 x 100 and 40 high. 1025 map.

FullstackJack avatar Aug 25 '17 15:08 FullstackJack

Darn, I already have the TempCast layer added. Here's an image of what the actual model/ground looks like: image

timminkov avatar Aug 25 '17 18:08 timminkov

Having tons of issues with falling through the floor at high velocities too. Tried changing to using a fixed timestep, but setting it to 60 brings the game to a crawl.

timminkov avatar Aug 25 '17 23:08 timminkov

I was able to solve some of the falling through floors issues with this https://github.com/IronWarrior/SuperCharacterController/pull/23. That being said, it's still buggy.

timminkov avatar Aug 26 '17 00:08 timminkov

Not to be a traitor and there is no denying SCC is an awesome project; however, with the number of critical bugs (fall throughs, wall stickiness, etc.) I'm beginning to wonder if it's really production-ready or just a POC teaching tool. Have you tried Invector's Third Person Controller on the Asset Store? They have a lite version which is free and provides basic locomotion and humanoid animation setup as well as improved camera controls including close to camera object fade. I'm considering using that since they have paid add-ons which implies they are dedicated to fixing bugs and the basic demo is much more impressive. Also, considering pairing that with Forge Networking Remastered for multiplayer gameplay since some developers have had success marrying the two and it seems like a positive alternative to Unity Multiplayer.

FullstackJack avatar Aug 27 '17 00:08 FullstackJack

I tried Invector's TPC but it felt a bit too "realistic" for my needs. I was looking for something arcade-y (banjo/dk64). I think in the future I'll just tweak Unity's built in character controller for my needs.

timminkov avatar Aug 27 '17 10:08 timminkov