sim.checkCollisionEx

Checks whether two entities are colliding, and will return all intersections between the two entities. The collidable flags of the entities are overridden if the entities are objects

Synopsis

int result, list intersections = sim.checkCollisionEx(int entity1Handle, int entity2Handle) int result, float[] intersections = sim.checkCollisionEx(int entity1Handle, int entity2Handle)

Arguments

  • entity1Handle: handle of entity 1 (can be an object handle or a collection handle)
  • entity2Handle: handle of entity 2 (can be an object handle or a collection handle), or sim.handle_all to check entity1 against all other collidable objects

Return values

  • result: number of segments returned
  • intersections: array containing the intersection segments between the two entities


See also: