言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Rigidbody.SweepTestAll

Switch to Manual
public function SweepTestAll(direction: Vector3, distance: float = Mathf.Infinity): RaycastHit[];

Parameters

direction Direction to sweep the Rigidbody object.
distance Length of the sweep.

Description

Rigidbody.SweepTestのようですが、これはヒットした全てを返します

The sweep may return multiple hits against the same collider if more then one of the rigidbody's attached colliders would hit it. Note that this function only works when a primitive collider type (sphere, cube or capsule) is attached to the rigidbody object - mesh colliders will not work, although they can be detected in the scene by the sweep.