📜  unity raycast 2d - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:59.205000             🧑  作者: Mango

代码示例2
Physics2D.Raycast(Vector2 origin, Vector2 direction, float distance = Mathf.Infinity, int layerMask = DefaultRaycastLayers, float minDepth = -Mathf.Infinity, float maxDepth = Mathf.Infinity);