问题出在哪?(15,15,15)

为什么说没有这个函数?冰川的第一关。。。这不是codecombat自己定义的吗


Where’s the problem? It’s not a function? I thought that it’s a function defined by CodeCombat.

Level…well…level one in the Glacier… :joy:

读第一到第六行说的东西。Vector 的确是 CodeCombat 已经定义好的Function。但是你用错了。你说的partnerPos 不是一个Vector。

所以说。。。一个vector是一个对象而不是位置吗?
So, a Vector is an item instead a position?

A vector IS a position, but it’s different from the (x,y) and the {“x”: x, “y”: y} positions. You have to convert the usual types of position into a vector if you want to add the vectors together.

Search online and see what vectors are

1 Like