I’m looking for suggestions to get better physics and sound reactions from my physics barrel. I have the barrel setup with 3 game objects for the collider sections, BarrelBottom, BarrelTop and Capsule. I also took a look at the barrels in the FPS tut and those barrels don’t roll, because they only have one cube collider and they don’t move when you bump in to them.
Right now, my FPS Controller climbs up them which is not what I want, and my sound doesn’t react on time.
It’s probably easiest to make a convex mesh collider in the shape of a cylinder. It also works pretty well if you combine a number of box colliders…the attached screenshot was for a disk, but a cylinder would be done using the same technique, but with thicker colliders. You can also make them go lengthwise in a ring shape instead of overlapping like that, but then the cylinder will be hollow.
I think the best way to make a “rollable” cylindrical collidr is simply use a capsule collider and add a box collider with the same height, but a x/z dimension that fits exactly inside the capsule. This way, the cylinder is stackable, if you kick it arround it would still fall on it’s side and roll perfectly, cause on the side only the capsule is colliding…