Re: Physics Bouncing Ball

#3
Hello,
as tonymaclane already said you can adjust the surface type of the material in order to change the physical behavior such as friction or elasticity. In case you don't use GameSDK, which already declares several different surface types, I will go through the necessary steps to create your own surface type. The surface types are declared in a separate file which can be found under this path Assets\Libs\MaterialEffects\SurfaceTypes.xml. Here you can add a new type to the list:

Code: Select all

 <SurfaceType name="mat_mysurfacetype">
  <Physics friction="1" elasticity="1" pierceability="3" sound_obstruction="0.5" />
 </SurfaceType>

After adding the new surface type to the list start the editor and assign it to your material. Now you can start to play around with the values until you are happy with the result.

Cheers,
Alex

Who is online

Users browsing this forum: No registered users and 1 guest

cron