Rigidbody.SweepTestAll 扫描测试全部

function SweepTestAll (direction : Vector3, distance : float = Mathf.Infinity) : RaycastHit[]

Description描述

Like Rigidbody.SweepTest, but returns all hits.

Rigidbody.SweepTest,但是返回所有碰撞点。

Note that this function may return multiple hits against the same collider, if more then one of the rigidbody's attached collider would hit it in the sweep.

如果扫描刚体的附加碰撞器超过一个,注意这个函数针对同一个碰撞器返回多个碰撞点。

Page last updated: 2011-2-10