2D 物理システムのグローバル設定とヘルパー関数です。
AllLayers | すべてのレイヤーを含むレイヤーマスク定数 |
angularSleepTolerance | A Rigidbody cannot sleep if its angular velocity is above this tolerance threshold. |
autoSyncTransforms | Set whether to automatically sync changes to the Transform component with the physics engine. |
baumgarteScale | 重複の解決にかける速度を管理するスケール要素 |
baumgarteTOIScale | TOI 重複の解決にかける速度を管理するスケール要素 |
callbacksOnDisable | Use this to control whether or not the appropriate OnCollisionExit2D or OnTriggerExit2D callbacks should be called when a Collider2D is disabled. |
defaultContactOffset | The default contact offset of the newly created Colliders. |
defaultPhysicsScene | The PhysicsScene2D automatically created when Unity starts. |
DefaultRaycastLayers | デフォルトで Raycast に関係するすべてのレイヤーを含むレイヤー定数 |
gravity | 重力加速度 |
IgnoreRaycastLayer | デフォルトのレイヤーマスク定数である Igonore Raycast |
jobOptions | A set of options that control how physics operates when using the job system to multithread the physics simulation. |
linearSleepTolerance | この許容値を上回る直線速度がある場合、リジッドボディはスリープしません。 |
maxAngularCorrection | 制限を解決する際に使用される最大角位置修正量。行き過ぎ防止に役立ちます。 |
maxLinearCorrection | 制限を解決する際に使用される最大直線位置修正量。行き過ぎ防止に役立ちます。 |
MaxPolygonShapeVertices | The maximum number of vertices allowed per primitive polygon shape type (PhysicsShapeType2D.Polygon). (Read Only) |
maxRotationSpeed | 物理更新毎のリジッドボディの最大角速度。この値を増やし過ぎると数値的な問題の原因になります。 |
maxTranslationSpeed | 物理更新毎のリジッドボディの最大直線速度。この値を増やし過ぎると数値的な問題の原因になります。 |
positionIterations | オブジェクトの位置について考慮する場合の物理ソルバーの反復回数 |
queriesHitTriggers | レイキャストでトリガーに設定しているコライダーを検知するか |
queriesStartInColliders | Set the raycasts or linecasts that start inside Colliders to detect or not detect those Colliders. |
reuseCollisionCallbacks | Determines whether the garbage collector should reuse only a single instance of a Collision2D type for all collision callbacks. |
simulationMode | Controls when Unity executes the 2D physics simulation. |
timeToSleep | リジッドボディがスリープするまでの秒単位での最低時間 |
velocityIterations | オブジェクトの速度について考慮する場合の物理ソルバーの反復回数 |
velocityThreshold | 相対直線速度を持つ衝突は、このしきい値を下回ると弾力がないものとして処理されます。 |
BoxCast | Casts a box against Colliders in the Scene, returning the first Collider to contact with it. |
BoxCastAll | Casts a box against Colliders in the Scene, returning all Colliders that contact with it. |
BoxCastNonAlloc | Casts a box into the Scene, returning Colliders that contact with it into the provided results array. Note: This method will be deprecated in a future build and it is recommended to use BoxCast instead. |
CapsuleCast | Casts a capsule against Colliders in the Scene, returning the first Collider to contact with it. |
CapsuleCastAll | Casts a capsule against Colliders in the Scene, returning all Colliders that contact with it. |
CapsuleCastNonAlloc | Casts a capsule into the Scene, returning Colliders that contact with it into the provided results array. Note: This method will be deprecated in a future build and it is recommended to use CapsuleCast instead. |
CircleCast | Casts a circle against Colliders in the Scene, returning the first Collider to contact with it. |
CircleCastAll | Casts a circle against Colliders in the Scene, returning all Colliders that contact with it. |
CircleCastNonAlloc | Casts a circle into the Scene, returning Colliders that contact with it into the provided results array. Note: This method will be deprecated in a future build and it is recommended to use CircleCast instead. |
ClosestPoint | Returns a point on the perimeter of the Collider that is closest to the specified position. |
Distance | Calculates the minimum distance between two Colliders. |
GetContacts | Retrieves all Colliders in contact with the Collider. |
GetIgnoreCollision | 衝突判定システムが collider1 と collider2 間のすべての衝突/トリガーを無視するかを確認します。 |
GetIgnoreLayerCollision | Checks whether collisions between the specified layers be ignored or not. |
GetLayerCollisionMask | 指定したレイヤーに衝突する可能性があるレイヤーを示す衝突のレイヤーマスクを取得します。 |
GetRayIntersection | Cast a 3D ray against the Colliders in the Scene returning the first Collider along the ray. |
GetRayIntersectionAll | Cast a 3D ray against the Colliders in the Scene returning all the Colliders along the ray. |
GetRayIntersectionNonAlloc | Cast a 3D ray against the Colliders in the Scene returning the Colliders along the ray. Note: This method will be deprecated in a future build and it is recommended to use GetRayIntersection instead. |
IgnoreCollision | collider1 と collider2 のペア間の衝突/トリガーを検知するか無視するようにします |
IgnoreLayerCollision | 指定されたレイヤーのペア間の衝突を検知するか無視するか選択します |
IsTouching | Checks whether the passed Colliders are in contact or not. |
IsTouchingLayers | Checks whether the Collider is touching any Colliders on the specified layerMask or not. |
Linecast | Casts a line segment against Colliders in the Scene. |
LinecastAll | Casts a line against Colliders in the Scene. |
LinecastNonAlloc | Casts a line against Colliders in the Scene. Note: This method will be deprecated in a future build and it is recommended to use Linecast instead. |
OverlapArea | Checks if a Collider falls within a rectangular area. |
OverlapAreaAll | Get a list of all Colliders that fall within a rectangular area. |
OverlapAreaNonAlloc | Get a list of all Colliders that fall within a specified area. Note: This method will be deprecated in a future build and it is recommended to use OverlapArea instead. |
OverlapBox | Checks if a Collider falls within a box area. |
OverlapBoxAll | Get a list of all Colliders that fall within a box area. |
OverlapBoxNonAlloc | Get a list of all Colliders that fall within a box area. Note: This method will be deprecated in a future build and it is recommended to use OverlapBox instead. |
OverlapCapsule | Checks if a Collider falls within a capsule area. |
OverlapCapsuleAll | Get a list of all Colliders that fall within a capsule area. |
OverlapCapsuleNonAlloc | Get a list of all Colliders that fall within a capsule area. Note: This method will be deprecated in a future build and it is recommended to use OverlapCapsule instead. |
OverlapCircle | Checks if a Collider falls within a circular area. |
OverlapCircleAll | Get a list of all Colliders that fall within a circular area. |
OverlapCircleNonAlloc | Get a list of all Colliders that fall within a circular area. Note: This method will be deprecated in a future build and it is recommended to use OverlapCircle instead. |
OverlapCollider | Gets a list of all Colliders that overlap the given Collider. |
OverlapPoint | Checks if a Collider overlaps a point in space. |
OverlapPointAll | Get a list of all Colliders that overlap a point in space. |
OverlapPointNonAlloc | Get a list of all Colliders that overlap a point in space. Note: This method will be deprecated in a future build and it is recommended to use OverlapPoint instead. |
Raycast | Casts a ray against Colliders in the Scene. |
RaycastAll | Casts a ray against Colliders in the Scene, returning all Colliders that contact with it. |
RaycastNonAlloc | Casts a ray into the Scene. Note: This method will be deprecated in a future build and it is recommended to use Raycast instead. |
SetLayerCollisionMask | 指定したレイヤーに衝突する可能性があるレイヤーを示す衝突のレイヤーマスクを設定します。 |
Simulate | Simulate physics in the Scene. |
SyncTransforms | Synchronizes. |