nape-js API
    Preparing search index...

    Class Material

    Physical material properties applied to shapes.

    Controls elasticity (bounciness), friction coefficients, density, and rolling friction. Internally wraps a ZPP_Material and is registered as the public nape.phys.Material class in the compiled namespace.

    Converted from nape-compiled.js lines 38254–38573.

    Index

    Constructors

    • Parameters

      • elasticity: number = 0.0
      • dynamicFriction: number = 1.0
      • staticFriction: number = 2.0
      • density: number = 1.0
      • rollingFriction: number = 0.001

      Returns Material

    Accessors

    Methods