Character losing support when cresting a slope #415
Unanswered
rpallarino3
asked this question in
Q&A
Replies: 3 comments 5 replies
|
hm, that is a bit odd. First guess was indeed the bounding box expansion. Is something creating a body for the character with a low speculative margin? e.g. the Demos CharacterInput takes MinimumSupportContinuationDepth from the minimumSpeculativeMargin passed into it. Increasing the MinimumSupportContinuationDepth won't retroactively increase the body's own speculative margin, though. |
0 replies
0 replies
|
I don't see anything at a glance that would explain it; a repro in the demos might be useful? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Somewhat long question and I'm sure i'm misunderstanding something here...
I'm working with the CharacterController and can't seem to get my character to stay supported when cresting a slope/hill. My character has a capsule collision box and the terrain is made of a custom mesh (I have verified the triangles are correct and the character is not passing through the mesh at all). I know the character is technically not in contact with the mesh when it crests but I was under the impression that was what MinimumSupportContinuationDepth was for. It seems that AllowContactGeneration is getting hit and returning true in the NarrowPhaseCallbacks but ConfigureContactManifold is not on the frame it loses support. I have verified that the bounding box is getting expanded (which would explain why AllowContactGeneration is getting hit I think). Even jacking up the support depths to ridiculous levels seems to not change behavior. Copilot seems to think that no manifold is being generated because the capsule and mesh are not in contact, but that explanation did not make a lot of sense to me.
Any idea what I'm missing? I can post some code here if it is helpful. I've attached a video of what this looks like (character turns green when it loses support).
CharacterLosingSupport.mp4
All reactions