Syclamoth / GamesAI6

A repository for the assets folder of our GamesAI project
2 stars 0 forks source link

getPosition in Legs.cs #10

Closed zchaoz closed 12 years ago

zchaoz commented 12 years ago
public Vector2 getPosition() {
    return new Vector2(myTrans.position.x, myTrans.position.y);
}

I'm just asking, is it ok? position.y and not position.z? If we get y axis, does it return zero?

Syclamoth commented 12 years ago

This is NOT OK. As you say, it should be x and z, not x and y.

zchaoz commented 12 years ago

This is Andrew's code =/. We need him to explain if it's ok or not because... I'm not sure too, lol.

But I also thought that this is NOT OK. You can see the result it causes when the Wolf is eating the Sheep. Telekinetic eating.

Andrew-Dunn commented 12 years ago

Just change it, it was written before I knew about Unity's coordinate system.

On 10/09/2012, at 5:56 PM, zchaoz notifications@github.com wrote:

This is Andrew's code =/. We need him to explain if it's ok or not because... I'm not sure too, lol.

But I also thought that this is NOT OK. You can see the result it causes when the Wolf is eating the Sheep. Telekinetic eating.

— Reply to this email directly or view it on GitHub.