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 tag is specified, 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"
  • Collision group: Collision group number. If not used, the object will collide with all objects.

    • Var: smtk_collision_group_array
    • Type: input
    • Possible values: "group_1", "group_2", "group_3"
    • Default: "group_1"
  • is_colliding: Tells if the surface is colliding with another element.

    • Var: smtk_bool
    • Type: output
    • Default: false


Below is a table showing which materials can be detected by the different sensor technologies.

alt text