Jump to content
  • Advertisement
Sign in to follow this  
3DModelerMan

Rigid body settings for characters?

This topic is 2807 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to do a character movement system, and I already have rigid bodys programmed into my engine using Bullet. What kind of things should I set so that the character moves without rolling, and getting stuck? I heard the character controller was unfinished and untested, so I didn't want to use it.

Share this post


Link to post
Share on other sites
Advertisement
My guess is that you don't want your character to be a rigid body at all. I would just insert your character's bounding box as just a collidable object (not sure what the class is called in bullet), then use the collision callbacks to handle its movement yourself.

Unless you really want physics based movement (you probably don't) its best to just handle the kinematics yourself. Physics engines aren't really meant for player objects that don't move according to physical laws.

Share this post


Link to post
Share on other sites
The character controller isn't perfect, but it has a lot of the right code in there. You want to setup a ghost collision object, then sweep that around. It will provide you with all the interesting collision pairs that you may want to collide with. You can then choose how you want to respond to each collision, instead of the normal physical reactions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!