Sorry if this is a stupid question, I have looked through the doc's and can't seem to find anything on this, but......
The code snippet below, when run gives me an error saying
'Failed to build material as data is invalid, check ranges of properties'
Any idea what the ranges are? 0.0 - 1.0??
Code:
` make the stone material
g_matStone = 1
phy make material g_matStone, "stone"
` the properties of the material
phy set material dynamic friction g_matStone, 60.0
phy set material static friction g_matStone, 80.0
phy set material friction combine g_matStone, 1
phy set material restitution g_matStone, 2.0
phy set material restitution combine g_matStone, 2
` and build the material
phy build material g_matStone
` make the metal material
g_matMetal = 2
phy make material g_matMetal, "metal"
` the properties of the material
phy set material dynamic friction g_matMetal, 30.0
phy set material static friction g_matMetal, 40.0
phy set material friction combine g_matMetal, 1
phy set material restitution g_matMetal, 2.0
phy set material restitution combine g_matMetal, 2
` and build the material
phy build material g_matMetal
` make the glass material
g_matGlass = 3
phy make material g_matGlass, "glass"
` the properties of the material
phy set material dynamic friction g_matGlass, 20.0
phy set material static friction g_matGlass, 30.0
phy set material friction combine g_matGlass, 1
phy set material restitution g_matGlass, 10.0
phy set material restitution combine g_matGlass, 1
` and build the material
phy build material g_matGlass
` make the wood material
g_matWood = 4
phy make material g_matWood, "wood"
` the properties of the material
phy set material dynamic friction g_matWood, 40.0
phy set material static friction g_matWood, 40.0
phy set material friction combine g_matWood, 1
phy set material restitution g_matWood, 30.0
phy set material restitution combine g_matWood, 1
` and build the material
phy build material g_matWood
I know the voices aren't real, but they have good ideas!