In the attempt of making my own Crawl & Crouch, I’ve started working how to place my mesh correctly after resizing the capsule.
Yet, at random types, it happens that my repositioning stops working properly.
An example, when crouching and uncrouching, after the n times I uncrouch, the n+1 Crouch will make my mesh sink in to the floor even tho during these n times it worked just find.
It happens randomly, which means that there are times in which it only crouches correctly 2 times and others in which it crouches correctly 5 or more times.
EDIT: I usually use C++, so any help is good