Regular API function

simReadCollision
remote API equivalent: simxReadCollision
RosPlugin API equivalent: simRosReadCollision

Description Reads the collision state of a registered collision object. This function doesn't perform collision detection, it merely reads the result from a previous call to simHandleCollision (simHandleCollision is called in the default main script). See also simResetCollision, simCheckCollision and simCheckCollisionEx.
C synopsis simInt simReadCollision(simInt collisionObjectHandle)
C parameters
collisionObjectHandle: handle of the collision object
C return value
collision state (0 or 1), or -1 if operation was not successful.
Lua synopsis number collisionState, table_2 collidingObjectHandles=simReadCollision(number collisionObjectHandle)
Lua parameters
Same as C-function
Lua return values
collisionState: collision state (0 or 1), or -1 if operation was not successful.
collidingObjectHandles: handles of the two colliding objects.

All regular API functions on one page