Interface ICircleColliderShape2D
Interface for a Circle Shape of 2D physics.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public interface ICircleColliderShape2D : IColliderShape2D
Properties
Position
Gets or sets the circle position.
Declaration
Vector2 Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Methods
SetShape(float, Vector2)
Set the shape of the circle collider.
Declaration
void SetShape(float radius, Vector2 position)
Parameters
| Type | Name | Description |
|---|---|---|
| float | radius | The radius of the circle. |
| Vector2 | position | The position offset of the circle respect the rigid body. |