Regular API function

simHandleCollision

Description Handles (check for collision, etc.) a registered collision object. Collision objects can be registered while editing a scene. See also simReadCollision, simResetCollision, simCheckCollision and simCheckCollisionEx.
C synopsis simInt simHandleCollision(simInt collisionObjectHandle)
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 return value
number of collisions or -1 if operation was not successful
Lua synopsis number collisionCount,table_2 collidingObjectHandles=simHandleCollision(number collisionObjectHandle)
Lua parameters
Same as C-function
Lua return values
collisionCount: number of collisions or -1 if operation was not successful.
collidingObjectHandles: handles of the two colliding objects. This return value is only available when a collision object handle is provided (i.e. explicit handling).

All regular API functions on one page