Interface IBoxColliderShape2D
Interface for a Box collider Shape of 2D physics.
Inherited Members
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
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. |