Scripting API
Scripting API
PhysicsMaterial2D
Struct in Abyss.Physics2D, from Abyss.Physics2D.
What a 2D collider is made of: how it slides along what it touches and how it bounces off it. A data asset, made from Create ▸ Physics 2D ▸ Physics Material 2D, named by a collider, or by Physics 2D's settings for every collider that names none.
public struct PhysicsMaterial2DFields
Friction
public float FrictionHow much it holds against sliding: zero slides as on ice.
Bounciness
public float BouncinessHow much it bounces back: zero stops dead, one bounces as high as it fell.
