Skip to content

Data surface

Defines the collision data of the surface, including extra custom data.

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
  • Collision data: Returns the raw output information of the sensor. If a barcode or an RFID surface tag is set, it will return the collision's data.

    • Var: smtk_string
    • Type: Input
    • Default: "none"

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"