Version: 2022.3
言語: 日本語

PhysicsScene

struct in UnityEngine

マニュアルに切り替える

説明

Represents a single instance of a 3D physics Scene.

Public 関数

BoxCastボックスのレイを飛ばし、オブジェクトコライダーの付いたオブジェクトがヒットするかを調べ、ヒットしたら詳細情報を返します
CapsuleCastCasts a capsule against all colliders in this physics scene and returns detailed information on what was hit.
InterpolateBodiesInterpolates Rigidbodies in this PhysicsScene.
IsEmptyGets whether the physics Scene is empty or not.
IsValidGets whether the physics Scene is valid or not.
OverlapBox指定したボックスと重なっているコライダーをすべて見つけ、バッファ内に保存します。
OverlapCapsule指定したカプセルを物理ベースの世界で確認し、重なるコライダーをすべてユーザー指定のバッファに返します。
OverlapSphere球に触れている/中にあるコライダーを演算し、与えたバッファに保存します。
RaycastCasts a ray, from point origin, in direction direction, of length maxDistance, against all colliders in the Scene.
ResetInterpolationPosesResets the Transform positions of interpolated and extrapolated Rigidbodies in this PhysicsScene to Rigidbody.position and Transform rotations to Rigidbody.rotation.
SimulateSimulate physics associated with this PhysicsScene.
SphereCast球体のレイを飛ばし、オブジェクトコライダーの付いたオブジェクトがヒットするかを調べ、ヒットしたら詳細情報を返します