Struct PhysicsRaycast2DRequest
Describes one pure 2D segment raycast in a batched query call.
public readonly struct PhysicsRaycast2DRequest
- Inherited Members
Constructors
PhysicsRaycast2DRequest(Vector2d, Vector2d)
Creates a pure 2D segment raycast request against all physics layers.
public PhysicsRaycast2DRequest(Vector2d start, Vector2d end)
Parameters
startVector2dendVector2d
PhysicsRaycast2DRequest(Vector2d, Vector2d, PhysicsLayerMask)
Creates a pure 2D segment raycast request with an include layer mask.
public PhysicsRaycast2DRequest(Vector2d start, Vector2d end, PhysicsLayerMask layerMask)
Parameters
startVector2dendVector2dlayerMaskPhysicsLayerMask
Properties
End
Gets the segment end in the X/Z plane.
public Vector2d End { get; }
Property Value
- Vector2d
LayerMask
Gets the included physics layers.
public PhysicsLayerMask LayerMask { get; }
Property Value
Start
Gets the segment start in the X/Z plane.
public Vector2d Start { get; }
Property Value
- Vector2d