Physics and Pit

Hey all, its difficult to see from the picture but my character is floating above the bridge as if its a box collider, instead of being on the surface of it.

All the objects around it was set to a mesh collider so I went in and place box colliders on each piece except the bridge I left that as a mesh collider because of the bowed shape.

I double checked my characters cage and its right at the bottom of her feet. I appreciate any assistance with this.
[/img]

351958--12231--$pit_162.jpg

If you examine the colliders in the editor, are they touching? Or is the player collider floating above the ‘bridge’ mesh collider?

Here is a screen shot of the box colliders around the pit. Yes in some places they touch because the model touches, how it was modeled.

I can’t really tell what’s going on from that screenshot. If you could post a screenshot of the editor, showing the player model and the player collider, that would be helpful.

Here is another screenshot, it appears even with a character controller on the character if I lift her above the surface and play she is not ‘falling’ to the surface as she should.

352091--12237--$charpic_474.jpg

That’s the same screenshot :wink: - still hard to see what you’re talking about.

Sorry had to fix it here you go thanks!

Ok, can you post an orthographic screenshot from the side showing the character floating about the bridge with both the character controller and bridge collider selected so that we can see them.

Ok here are two more shots one in game and one ortho with her over the bridge.

352102--12238--$char2_998.jpg
352102--12239--$char4_168.jpg

Here is one a little more clear with both the bridge and the character selected.

352104--12240--$char5_163.png

What do you have gravity set to for the character controller? And are you moving the controller in a way that gravity will be applied?

Jesse good point I don’t have any settings for gravity. Let me take a look at the script and Ill post back if Im still being stumped.

Do the colliders look alright I know its hard to tell. Does it matter that they are touching?

Three possibilities

  1. No collision is happening(we cant see because the screenshot isnt clear enough, the character could be standing on an object underneath) Solution would be to add a collider manually if there isnt one, or to re import the object just to make sure
  2. Collision box is offset, solution just tweak the colliders center and size properties
  3. There is no gravity, this is easy, is the character simply staying at the instantiated position or are they falling

It does not matter that they are touching

3 - The character is not falling at all, just hanging anywhere I put her.

lol, this is nothing to do with your bridge then. The new question is how to implement gravity?

I’ve actually forgotten as I believe it was inherent within the FPS walker script, however perhaps someone can enlighten us now that this is established.

I’ll have a quick gander at mine though.

My setup includes a character controller and the FPS walker script with the gravity setting set to any positive value.

Check you have both of these, any object given a rigidbody should fall, and the characters gravity is all in the FPS walker I believe. Make sure gravity is at a positive value, if you have changed FPS walker in any way put the original on just to debug.

What happens when you jump?

Thanks so much for the help, let me fiddle with this a bit, you guys are great!