StrawberryBF/SampleGame/src/physics/Solid.bf

21 lines
306 B
Brainfuck
Raw Normal View History

2020-05-05 11:50:38 +08:00
using System.Collections;
namespace Strawberry.Sample
2020-05-05 11:50:38 +08:00
{
public class Solid : Component, IHasHitbox
2020-05-05 11:50:38 +08:00
{
public Hitbox Hitbox { get; private set; }
2020-05-05 11:50:38 +08:00
2021-12-24 09:09:38 +08:00
private Vector remainder;
public Vector ExactPosition => Entity.Position + remainder;
public this(Hitbox hitbox)
2020-05-05 11:50:38 +08:00
{
Hitbox = hitbox;
2020-05-06 09:51:27 +08:00
}
2021-12-24 09:09:38 +08:00
2020-05-05 11:50:38 +08:00
}
}