Repository navigation
Small bug fixes:
JobSystemThreadPoolcould run out of jobs ("No jobs available!" assert) when its worker threads didn't get scheduled, e.g. when there were more worker threads than CPU cores available to the process. The assert is a trace now and the underlying issue has been fixed.ConvexHullShape::GetTrianglesNextwould not split faces into multiple batches when the number of triangles in a single face was bigger thaninMaxTrianglesRequested. In this case it would return 0 which made the calling code think that all triangles were collected when they were not.HeightFieldShape::GetTrianglesNextcould return the same triangles multiple times when the output buffer was full in the middle of a block.HeightFieldShape::Cloneof a height field without any collision returned a shape that had uninitialized buffers and could report collision.HeightFieldShapeSettings::CalculateBitsPerSampleForErrorread out of bounds whenmSampleCountwas not a multiple ofmBlockSize.- A flat
HeightFieldShapewith a number of blocks per side that is not a power of 2 could return collisions and triangles beyond its far edges (and read out of bounds) because the inside-out height range of the padding blocks became valid after dequantization. MotionProperties::SetMassPropertiesreplaced small but valid inertia tensors (all principal moments below about 1e-6 kg m^2) with the inertia of a sphere of radius 1 m. The degenerate inertia check is now relative to the mass of the body.