ColliderComponent
Namespace: Murder.Components
Assembly: Murder.dll
public sealed struct ColliderComponent : IComponent
Implements: IComponent
⭐ Constructors
public ColliderComponent()
public ColliderComponent(IShape shape, int layer, Color color)
Parameters
shape
IShape
layer
int
color
Color
public ColliderComponent(ImmutableArray<T> shapes, int layer, Color color)
Parameters
shapes
ImmutableArray<T>
layer
int
color
Color
⭐ Properties
DebugColor
public readonly Color DebugColor;
Returns
Color
Layer
public readonly int Layer;
Value of layer according to CollisionLayersBase.
Returns
int
Shapes
public readonly ImmutableArray<T> Shapes;
Returns
ImmutableArray<T>
⭐ Methods
SetLayer(int)
public ColliderComponent SetLayer(int layer)
Set layer according to CollisionLayersBase.
Parameters
layer
int
Returns
ColliderComponent
WithLayerFlag(int)
public ColliderComponent WithLayerFlag(int flag)
Set layer according to CollisionLayersBase.
Parameters
flag
int
Returns
ColliderComponent
WithoutLayerFlag(int)
public ColliderComponent WithoutLayerFlag(int flag)
Set layer according to CollisionLayersBase.
Parameters
flag
int
Returns
ColliderComponent
⚡