Regular API function

simHandleCollision / sim.handleCollision

Description DEPRECATED. See sim.checkCollision instead.
C/C++
synopsis
simInt simHandleCollision(simInt collisionObjectHandle)
C/C++
parameters
collisionObjectHandle: handle of the collision object or sim_handle_all or sim_handle_all_except_explicit. (sim_handle_all will handle all registered collision objects, while sim_handle_all_except_explicit will only handle those that are not marked as "explicit handling")
C/C++
return value
number of collisions or -1 if operation was not successful
Lua synopsis int collisionCount,int[2] collidingObjectHandles=sim.handleCollision(int collisionObjectHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
collisionCount: number of collisions.
collidingObjectHandles: handles of the two colliding objects. This return value is only available when a collision object handle is provided (i.e. explicit handling).