void CFood::RenderItem(MS& modelStack) { float C = Charge * 8; C = C > 1 ? 1 : C; modelStack.Translate(0, translation.y, translation.z); modelStack.Translate((currentWeapbobX + translation.x) * (1 - C), currentWeapbobY * (1 - C), 0); modelStack.Translate(0, bobY * C, 0); modelStack.Rotate(-45 * (1 - C), 0, 1, 0); modelStack.Rotate(90, 1, 0, 0); modelStack.Scale(2, 4, 2); }
void Entity::RenderObject(MS& modelStack) { modelStack.Translate(position); modelStack.Rotate(hOrientation, 0, 1, 0); modelStack.Scale(size); }