top of page

Materials

The CharacterController has some settings that can be overridden in some situations : for example friction, max velocity, can walljump etc...

This is the goal of Material script if attached to a game object. So you can override default properties of CharacterController for some specific game objects. 

This property will be used if character is touching a game object owning a material script.

 

A perfect example is the friction. By default you want no friction for your character, so you put 1 in its default setting value.

But if you want a specific ground to slide, you just have to put a new script on it, add Material and override friction value.

This new friction will be used if the character is lying on this specific ground.

 

Some others settings can be overridden for example if player can do wall jump or not.

For example by default you don't allow wall jumping on your character except form some walls, this is done in demo level.

We have attached a material script on wall and override Wall Jump default value to True.

  • Override Friction : override default player frictions or not (if checked, values below are applied)

    • Dyn Friction : new dynamic friction for player

    • Static Friction : new static friction for player

  • Ground Bounciness : allows to add bounce effect when player touches a ground having this material (0 = disabled)

  • Wall Jump : wall jump enabled status for this game object (default = keep player value, true = force enabled, false = force disabled)

  • Wall Slide : wall slide enabled status for this game object (default = keep player value, true = force enabled, false = force disabled)

  • Wall Friction : override Wall Slide default friction if enabled

bottom of page