Collision detection variable

  • Hi,

    Can you please tell me what is the software variable for collision detection? And the variable to set the collision detection?

    Note: am not talking about turning on through teach pendent

    for eg,

    If (colldectionvariable=off then

    colldetectionvariable=True

    col_j1=500

    col_j2=500

    col_j3=500

    col_j4=500

    ....


    Thanks in advance

  • No such thing.

    Collision detection or shock detection uses threshold values (integers only).

    These values can either be invoked by pre-set values stored/returned using the SETCOLTHID function, or you can express the threshold values directly as constants or by variables you define in the usual way.


    These variables can then be used in conjunction with the respective AS commands:

    coll_det[1] = 200

    coll_det[2] = 200

    coll_det[3] = 200

    coll_det[4] = 100

    coll_det[5] = 100

    coll_det[6] = 100



    COLR coll_det[1],coll_det[2],coll_det[3],coll_det[4],coll_det[5],coll_det[6]

    COLROFF

    JMOVE #a1

    COLRON

    JMOVE #a2

    COLROFF


    All the respective AS commands are available in the manual.

Advertising from our partners