Click or drag to resize

Physics2DContactTestItem(Rectangle, Physics2DCategories, Physics2DCategories, Int32, Physics2DContactTestItemModeEnum) Constructor

Initializes a new instance of the Physics2DContactTestItem class

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public Physics2DContactTestItem(
	Rectangle bounds,
	Physics2DCategories collisionCategories = Physics2DCategories.Category1,
	Physics2DCategories collidesWith = Physics2DCategories.All,
	int collisionGroup = 0,
	Physics2DContactTestItemModeEnum mode = Physics2DContactTestItemModeEnum.All
)

Parameters

bounds  Rectangle
 
collisionCategories  Physics2DCategories  (Optional)
 
collidesWith  Physics2DCategories  (Optional)
 
collisionGroup  Int32  (Optional)
 
mode  Physics2DContactTestItemModeEnum  (Optional)
 
See Also