You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
615 B
29 lines
615 B
using Entitas;
|
|
using Sog;
|
|
|
|
namespace CoreGame.Render
|
|
{
|
|
[Combat]
|
|
public class LogicTransformComponent : IComponent
|
|
{
|
|
public Fixed64Vector2 position;
|
|
public Fixed64Vector2 scale;
|
|
public Fixed64Vector2 forward;
|
|
internal bool isStop = true;
|
|
|
|
public void SetPosition(in Fixed64Vector2 pos)
|
|
{
|
|
position = pos;
|
|
}
|
|
|
|
public void SetDirection(in Fixed64Vector2 forwa)
|
|
{
|
|
forward = forwa;
|
|
}
|
|
|
|
public void AddPosition(Fixed64Vector2 deltaPos)
|
|
{
|
|
position += deltaPos;
|
|
}
|
|
}
|
|
}
|