I'm trying to implement the experimental character controller in my engine, but the capsule falls over just like any regular capsule shape would. Additionally, the character's capsule responds to collision, so it gets knocked around very easily. I can't seem to find the code in the sample code that prevents this undesired behavior. I basically want my capsule acting similar to the one in the sample code.
Date: 01 Nov 2009 17:37
Number of posts: 6
RSS: New posts
So I found that be setting the desired velocity every frame, the capsule will remain standing. However, it still gets knocked around very easily, and it seems like this experimental code doesn't handle the capsule not being upright, because as soon as the capsule is not upright it begins to act very erratically, like flying around the world at high speeds.
Ok, the inertia code was being overwritten, I placed it in the wrong place, so that is preventing the capsule from falling over. However, I still have a strange issue where when the capsule is bumped by any other physics, it starts floating above the ground and goes straight up into the sky, seemingly ignoring gravity entirely. Any ideas?