Yeah, gotcha. Since i have primarily made use of the SCC having Mario, as i lay those people max/minPercentFromCenter vars I almost forgot on the subject. The mission will be to smooth out course, while the with out them new capsule usually “clamp” along the side of a cliff through to the dropoff fundamentally happens, where it does switch to a world falling condition. The issue is one generally whenever a character goes into a slipping state, the y velocity is determined in order to no and you can the law of gravity commonly slower speed them downwards over the years. It brings an unusual jittery perception, since the capsule’s vertical actions whenever you are clamping on the edge of the brand new cliff could be extremely fast when compared to the slow decent out-of the law of gravity.
New clamping matter you’ve found happen due to the fact SphereCast regularly locate floor are slightly smaller than the brand new radius of your own control (otherwise threshold causes). Once you are close to brand new edge there therefore throw down, your entirely miss the cliff and you can clamp on the ground. Though it is not constantly better so you can fasten off a big range, the fresh new SCC was created to maybe not worry about that and instead allow the PlayerMachine or any execution deal with helping/disabling clamping…unfortunately, in this situation the fresh ProbeGround that causes the trouble takes place Just after SuperUpdate prior to the fresh controller was clamped, offering no chance towards the PlayerMachine to sort out and therefore condition it ought to be when you look at the.
Which is probably too much to take in. Anyways, I blogged up a quick fix because of it and you may pushed they to another type of branch, which you’ll discover right here. It is not more practical solution previously, however for a one regarding procedure it has to work okay. Essentially there was only yet another message transmitted, OnBeforeClamp, you to allows the new PlayerMachine work at specific reason just before clamping goes.
Your cause makes perfect sense, thank you for the data. I’m slower building up an excellent performing experience with exactly how everything you matches along with her (I do believe).
You will find integrated your SteadyGround branch change, so that as much as i can say at this point, it’s repaired the situation on side of increased systems, therefore thank you for one.
Thus, one to condition fixed, just a few even more to visit. I believe such as for instance there can be a conclusion coming soon fairly soon although ??
I am speculating towards flat floor it is due to floating point inaccuracy towards pushbacks so we might get fortunate whilst still being end up being overlapping the past go out RecursivePushback is called
The collisionData list try removed at the start of for every name in order to RecursivePushback(). This will be burdensome for me personally as i am seeing this habits:
1) RecursivePushback() is known as regarding SingleUpdate() 2) collisionData is actually cleaned. 3) Character base fields try overlapping into the soil 4) The ground collision will get placed into the fresh collisionData. 5) RecursivePushback() is known as from inside RecursivePushback(). 6) collisionData was removed. 7) Legs fields is http://www.datingmentor.org/hairy-women-dating no longer overlapping
The end result is whenever my password monitors the new collisionData (from inside the a customized LateSuperUpdate enjoy, fired on most avoid out of SingleUpdate()) , it is empty.
I’ve tried swinging collisionData.clear() out-of RecursivePushback and you can alternatively to the SingleUpdate. This really works much better, however, I am nonetheless seeing specific complications with it.*
A little while I shall create things a bit more robust, however, this will work good for now, enabling the new controller to reside the boundary
collisionData remains possibly empty, more frequently when moving down mountains, but it also happens on flat surface. On mountains, maybe the law of gravity isn’t large enough to maneuver brand new reputation down sufficient to overlap. This is going to make feel and it is why the clamping is needed.