Click or drag to resize

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

Initializes a new instance of the Physics2DContactTestItem class

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

Parameters

bounds
Type: NeoAxisRectangle
collisionCategories (Optional)
Type: NeoAxisPhysics2DCategories
collidesWith (Optional)
Type: NeoAxisPhysics2DCategories
collisionGroup (Optional)
Type: SystemInt32
mode (Optional)
Type: NeoAxisPhysics2DContactTestItemModeEnum
See Also