public void Translate(float x, float y) { //Transform.m7 += x; //Transform.m8 += y; //Transform.Translate(x,y); //UpdateGunTransform(); localTransform.Translate(x, y); UpdateTransform(); }
// translates an object and then called up UpdateAllTransforms for this and all child objects, public void Translate(float x, float y) { localTransform.Translate(x, y); UpdateAllTransforms(); }