Search Results for

    Show / Hide Table of Contents

    Interface IBoxColliderShape2D

    Interface for a Box collider Shape of 2D physics.

    Inherited Members
    IColliderShape2D.Radius
    IColliderShape2D.Type
    IColliderShape2D.ChildCount
    IColliderShape2D.InternalShape
    IColliderShape2D.TestPoint(ref Vector2, ref Vector2, float)
    IColliderShape2D.TestRectangle(ref RectangleF, ref Vector2, float)
    IColliderShape2D.TestShape(Vector2, float, IColliderShape2D, Vector2, float)
    Namespace: Evergine.Common.Physics2D
    Assembly: Evergine.Common.dll
    Syntax
    public interface IBoxColliderShape2D : IColliderShape2D

    Properties

    Angle

    Gets or sets the angle of the box shape.

    Declaration
    float Angle { get; set; }
    Property Value
    Type Description
    float

    Center

    Gets or sets the center of the Box collider shape.

    Declaration
    Vector2 Center { get; set; }
    Property Value
    Type Description
    Vector2

    Height

    Gets or sets the height of the Box collider.

    Declaration
    float Height { get; set; }
    Property Value
    Type Description
    float

    Width

    Gets or sets the width of the Box collider.

    Declaration
    float Width { get; set; }
    Property Value
    Type Description
    float

    Methods

    SetShape(float, float)

    Setup the box collider shape.

    Declaration
    void SetShape(float width, float height)
    Parameters
    Type Name Description
    float width

    The width.

    float height

    The height.

    SetShape(float, float, Vector2, float)

    Build the shape to represent an oriented box.

    Declaration
    void SetShape(float width, float height, Vector2 center, float angle)
    Parameters
    Type Name Description
    float width

    The width.

    float height

    The height.

    Vector2 center

    The box center.

    float angle

    The box angle.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX