Hello! This is my first post on the MC Forge forums. I am trying to make a mod. Part of that mod requires a gun. I have made a working gun that fires actual bullets. However, the bullets' model does not accurately display the bullet's position and pitch. Here are all the issues:
1. The bullet model's spawn position varies depending on the pitch that it is fired at. When I fire it downward, the bullet model spawns on my left, when when I fire it upward, the model spawns on my right. The y-position of the model is always in it's proper place.
2. The bullet model has no pitch. It is always is horizontal.
Those are the only issues that I do not know how to solve (so only try to address those). Here is the code:
EntityStdBullet.class (the entity itself):
RenderStdBullet (the Renderer):
ModelStdBullet.class (the model):
I also have screenshots illustrating the problem:
As you can see, when I am firing up (those yellow blotches are the bullets' models), the bullets' models spawn on the right as they should, but they have no pitch.
However, when I fire downward (the bullet is in the far lower-left corner), the bullet's model spawns on the left. It still has no pitch.