Skip to content

Commit

Permalink
fix: store velocity as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
cric96 committed May 21, 2024
1 parent 15f88f0 commit 73132d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object MacroSwarmAlchemistSupport extends MacroSwarmSupport(ScafiIncarnationForA
val previousPosition = alchemistEnvironment.getPosition(alchemistEnvironment.getNodeByID(mid()))
val target = previousPosition.plus(Array(velocity.x, velocity.y))
target.asInstanceOf[Position[_]]
node.put("velocity", velocity)
node.put("velocity", Array(velocity.x, velocity.y))
node.put("destination", target)
}
}
Expand Down

0 comments on commit 73132d2

Please sign in to comment.