Skip to content

Surface

Defines the collision surface parameters.

Mandatory children

  • Bounciness: Bounciness coefficient of restitution. When two objects collide, the total restitution is the multiplication of both values. Setting one to 0.0 will null out bounciness.

    • Var: smtk_coefficient
    • Type: Input
    • Default: 0.1
  • Friction: Static friction value of the surface. A good approximation would be that the friction between two surfaces A and B equals to max(A, B, A*B). A result of 1 would mean no friction.

    • Var: smtk_float
    • Type: Input
    • Default: 0.5

Optional children

  • Collision tag: Collision material properties. If no property is set, solid will be enabled by default.
    • Var: smtk_collision_material_array
    • Type: Input
    • Possible values: "all", "none", "solid", "liquid", "conductive", "reflective", "barcode", "rfid", "magnet"
    • Default: "solid"