How do you get the friction values of different parts/materials?
Is it possible to get friction values of terrain materials? Can you change these?
How do you get the friction values of different parts/materials?
Is it possible to get friction values of terrain materials? Can you change these?
Parts have a CustomPhysicalProperties property that lets you change the elasticity, friction, ect. You should be able to get the friction with this.
Can you change terrain friction though?
A quick check to the Terrain page on the wiki will probably answer that.
You will see a CustomPhysicalProperties property for Terrain, so I’d assume you can change the friction. I think different materials have different properties, so look around in studio and on the API to see if you find anything about them.
It’s one friction value for all riiippp
They don’t have the same friction. From left to right: Plastic Part, Sand Part, Grass Terrain, Ice Terrain, Sand Terrain. The blocks have 0 FrictionWeight and are the same.
https://giant.gfycat.com/WelldocumentedInfatuatedIndianskimmer.webm
I looked around, and the values for these aren’t documented anywhere…
Hm, are part material frictions documented? Maybe they are the same as those.
Nope. I checked. I remember them being documented somewhere, too…
Apparently, you can find friction on specific materials by printing this:
print(PhysicalProperties.new(Enum.Material.Plastic).Friction)
Replace Plastic
with any other material. I found out Glass
has 0.25 in friction.
Oh, and speaking of documents, we should really have a document about what each material has in friction.