ObjectID =  event .collision .create  (  Procedure ,  ObjectID ,  Nature  )  
                                          
Description :

This instruction creates events when two objects collide.

Parameters :

  • Name of the procedure managing the event.
  • ObjectID of the graphic object (2D or 3D).
  • 1..65535

    No event is created when two objects of the same nature collide. In a game, for example, players on the same side can be given the same nature so as not to collide.

Return Handle :

  • ObjectID of the event.

Notes :


When creating the procedure, you should always organize its eight parameters in the following order: Event ObjectID 1, Object ObjectID 1, Index 1, Object Type 1, Event ObjectID 2, Object ObjectID 2, Index 2, Object Type 2.


Examples :