Struct ShapeFilter

    Definition

    Namespace:
    Tizen.NUI.Physics2D.Chipmunk
    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 Source

    ShapeFilter(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 Source

    ALL_CATEGORIES

    Value for signifying that a shape is in every layer.

    Declaration
    public static uint ALL_CATEGORIES { get; }
    Property Value
    Type Description
    uint
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    NO_GROUP

    Value for signifying that a shape is in no group.

    Declaration
    public static UIntPtr NO_GROUP { get; }
    Property Value
    Type Description
    UIntPtr

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX