OpenCL support for rigid bodies