Character controller issue
Forum » General / Help » Character controller issue
Started by: Nic (guest)
On: 1257097060|%e %b %Y, %H:%M %Z|agohover
Number of posts: 6
rss icon RSS: New posts
Summary:
Character's capsule falls over, responds to collision
Character controller issue
Nic (guest) 1257097060|%e %b %Y, %H:%M %Z|agohover

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.

unfold Character controller issue by Nic (guest), 1257097060|%e %b %Y, %H:%M %Z|agohover
Re: Character controller issue
Nic (guest) 1257103809|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Character controller issue by Nic (guest), 1257103809|%e %b %Y, %H:%M %Z|agohover
Re: Character controller issue
PGlynnPGlynn 1257287434|%e %b %Y, %H:%M %Z|agohover

are you doing the same inertia settings as in the example? I believe setting the inertia to zero is what stops rotation.

unfold Re: Character controller issue by PGlynnPGlynn, 1257287434|%e %b %Y, %H:%M %Z|agohover
Re: Character controller issue
Nic (guest) 1257294391|%e %b %Y, %H:%M %Z|agohover

Yes, that did nothing for me. However, I'll double check, maybe my engine is also setting inertia sometime after that.

Thanks.

unfold Re: Character controller issue by Nic (guest), 1257294391|%e %b %Y, %H:%M %Z|agohover
Re: Character controller issue
Nic (guest) 1257303070|%e %b %Y, %H:%M %Z|agohover

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?

unfold Re: Character controller issue by Nic (guest), 1257303070|%e %b %Y, %H:%M %Z|agohover
Re: Character controller issue
PGlynnPGlynn 1257354456|%e %b %Y, %H:%M %Z|agohover

what is the ground? mainly what primitive.

unfold Re: Character controller issue by PGlynnPGlynn, 1257354456|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License