Billboard.Position.set, Billboard.Direction.set: Whaaaaa?

Sneftel

11-06-2006 22:47:18

So billboards I'm using in my app were appearing in strange places: they'd only move along a diagonal line. I investigated a bit, and on line 45 of Billboard.cs (and subsequently, on line 24 of OgreBillboard.i) I found this:

public Math3D.Vector3 Position {
get {
return new Math3D.Vector3(mPosition.x, mPosition.y, mPosition.z);
}
set {
mPosition.x = value.x;
mPosition.y = value.x;
mPosition.z = value.x;
}
}
public Math3D.Vector3 Direction {
get {
return new Math3D.Vector3(mDirection.x, mDirection.y, mDirection.z);
}
set {
mDirection.x = value.x;
mDirection.y = value.x;
mDirection.z = value.x;
}
}

Note that all components are being set to value.x. Is this a bug?

rastaman

12-06-2006 18:11:47

yes thats a bug :). ill fix it for next update.

thanks