Physics物理学
- bounceThreshold
- CapsuleCastAll
- CapsuleCast
- CheckCapsule
- CheckSphere
- GetIgnoreLayerCollision
- gravity
- IgnoreCollision
- IgnoreLayerCollision
- Linecast
- maxAngularVelocity
- minPenetrationForPenalty
- OverlapSphere
- RaycastAll
- Raycast
- sleepAngularVelocity
- sleepVelocity
- solverIterationCount
- SphereCastAll
- SphereCast
Physics.OverlapSphere 相交球
static function OverlapSphere (position : Vector3, radius : float, layerMask : int = kAllLayers) : Collider[]
Description描述
Returns an array with all colliders touching or inside the sphere.
返回球型半径之内(包括半径)的所有碰撞体 collider[]。
NOTE: Currently this only checks against the bounding volumes of the colliders not against the actual colliders.
注意:一般来说,这个函数检查的是碰撞体的包围体,而不是碰撞体的实际边界。
最后修改:2011年4月9日 Saturday 11:38