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
Name | Data Type | Description |
---|---|---|
Enter | Exec | Triggers the execution of this node |
Rigid Body 2D | Component | The Rigid Body 2D component attached to the line segment |
Keypoints | Vec2 | The vec2 array to add a collision range to |
Length | Number | The length of the 2D Brush |
Pixel Per Unit | Number | The 2D line's number of pixels per unit |
Output
Name | Data Type | Description |
---|---|---|
Enter | Exec | Executes the next node |