Interface IEdgeColliderShape2D
Interface for a Edge Shape of 2D physics.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public interface IEdgeColliderShape2D : IColliderShape2D
Properties
Normals
Gets the Edge normals.
Declaration
Vector2[] Normals { get; }
Property Value
Type | Description |
---|---|
Vector2[] |
Vertices
Gets the edge vertices.
Declaration
Vector2[] Vertices { get; }
Property Value
Type | Description |
---|---|
Vector2[] |
Methods
SetShapeFromVertices(Vector2[])
Copy vertices.
Declaration
void SetShapeFromVertices(Vector2[] vertices)
Parameters
Type | Name | Description |
---|---|---|
Vector2[] | vertices | The edge vertices. |
SetShapeFromVertices(Vector2[], Vector2, Vector2, float)
Copy vertices.
Declaration
void SetShapeFromVertices(Vector2[] vertices, Vector2 scale, Vector2 center, float angle)
Parameters
Type | Name | Description |
---|---|---|
Vector2[] | vertices | The edge vertices. |
Vector2 | scale | The scale of the shape. |
Vector2 | center | The box center. |
float | angle | The box angle. |