For our fifth PhysX tutorial, we’re going to look at the default material in our scene. This is where we control how bouncy and grippy objects are by setting restitution, static friction and dynamic friction. It’s a small amount of code, but these values make a huge difference once objects start colliding.
That gives us a simple default material to work with. A restitution of 0.5 gives some bounce, while the friction values give surfaces some resistance instead of making everything feel like it is sliding around on ice.
Questions or corrections? If something doesn’t work or you spot something I’ve got wrong, leave a comment below. These tutorials have been around a long time, so useful corrections are always welcome!
Related posts:
3. PhysX Scenes PhysX, just like OpenGL, needs to be setup, but and...