Rigidbody
- AddExplosionForce
- AddForceAtPosition
- AddForce
- AddRelativeForce
- AddRelativeTorque
- AddTorque
- angularDrag
- angularVelocity
- centerOfMass
- ClosestPointOnBounds
- collisionDetectionMode
- detectCollisions
- drag
- freezeRotation
- GetPointVelocity
- GetRelativePointVelocity
- inertiaTensorRotation
- inertiaTensor
- interpolation
- isKinematic
- IsSleeping
- mass
- maxAngularVelocity
- MovePosition
- MoveRotation
- OnCollisionEnter
- OnCollisionExit
- OnCollisionStay
- position
- rotation
- SetDensity
- sleepAngularVelocity
- sleepVelocity
- Sleep
- solverIterationCount
- SweepTestAll
- SweepTest
- useConeFriction
- useGravity
- velocity
- WakeUp
- worldCenterOfMass
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.
如果扫描刚体的附加碰撞器超过一个,注意这个函数针对同一个碰撞器返回多个碰撞点。
最后修改:2011年2月10日 Thursday 21:30