Skip to main content

2D Line Collider

The 2D Line Collider node allows you to add collision detection to a 2D line. This node integrates seamlessly with 2D physics systems, enabling interactive games or simulation scenarios where collisions with the line are required.

tip

Combine 2D Line Collider with the 2D Line Renderer node to visualize and interact with the colliders in your scene

Input

NameData TypeDescription
EnterExecTriggers the execution of this node
Rigid Body 2DComponentThe Rigid Body 2D component attached to the line segment
KeypointsVec2The vec2 array to add a collision range to
LengthNumberThe length of the 2D Brush
Pixel Per UnitNumberThe 2D line's number of pixels per unit

Output

NameData TypeDescription
EnterExecExecutes the next node