Regular API function

simHandleCollision / sim.handleCollision

Description Deprecated. See sim.checkCollision instead.
C/C++
synopsis
int simHandleCollision(int 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).