mirror of
https://github.com/NoelFB/tiny_link.git
synced 2025-04-05 00:39:18 +08:00
Merge 957aa8d938
into f62a60cb3e
This commit is contained in:
commit
7dbe2ee2e8
@ -22,7 +22,7 @@ Point Orb::target() const
|
|||||||
void Orb::update()
|
void Orb::update()
|
||||||
{
|
{
|
||||||
auto mover = get<Mover>();
|
auto mover = get<Mover>();
|
||||||
auto diff = Vec2(target() - entity()->position).normal();
|
auto diff = Vec2f(target() - entity()->position).normal();
|
||||||
mover->speed = diff * speed;
|
mover->speed = diff * speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user