当我使用scene.sweep时,有时障碍点是有效的,但有时该点是零。我在API中阅读了一个提示:
\note If a shape from the scene is already overlapping with the query shape in its starting position,
the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified.
当我添加标志eASSUME_NO_INITIAL_OVERLAP时,它总是返回块点位置。但是我也发现起始位置被忽略了。
pxHitFlags |= PxHitFlag::eASSUME_NO_INITIAL_OVERLAP;
该如何预防这种情况?