Struct ShapeFilter
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
Fast collision filtering type that is used to determine if two objects collide before calling collision or query callbacks.
public struct ShapeFilter
Constructors
View SourceShapeFilter(UIntPtr, uint, uint)
Create a shape filter.
Declaration
public ShapeFilter(UIntPtr group, uint categories, uint mask)
Parameters
| Type | Name | Description |
|---|---|---|
| UIntPtr | group | |
| uint | categories | |
| uint | mask |
Properties
View SourceALL_CATEGORIES
Value for signifying that a shape is in every layer.
Declaration
public static uint ALL_CATEGORIES { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Categories
Categories value A bitmask of user definable categories that this object belongs to. The category/mask combinations of both objects in a collision must agree for a collision to occur.
Declaration
public uint Categories { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
FILTER_ALL
Collision filter value for a shape that will collide with anything except FILTER_NONE.
Declaration
public static ShapeFilter FILTER_ALL { get; }
Property Value
| Type | Description |
|---|---|
| ShapeFilter |
FILTER_NONE
Collision filter value for a shape that does not collide with anything.
Declaration
public static ShapeFilter FILTER_NONE { get; }
Property Value
| Type | Description |
|---|---|
| ShapeFilter |
Group
Group value Two objects with the same non-zero group value do not collide. This is generally used to group objects in a composite object together to disable self collisions.
Declaration
public UIntPtr Group { get; set; }
Property Value
| Type | Description |
|---|---|
| UIntPtr |
Mask
Mask value A bitmask of user definable category types that this object object collides with. The category/mask combinations of both objects in a collision must agree for a collision to occur.
Declaration
public uint Mask { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
NO_GROUP
Value for signifying that a shape is in no group.
Declaration
public static UIntPtr NO_GROUP { get; }
Property Value
| Type | Description |
|---|---|
| UIntPtr |