Bullet Shooting 3D LWJGL

Hello Guys,

I have some Problems with my Bullet Class because it doesn’t shoot in the right Direction.

Bullet Class:



private boolean hasHit = false;

	/** The owner of this Bullet. */
	private Entity owner;
	private double damage;

	private int time = 0; 

	protected int ticksInGround;

	float speed = 0.012f;

	float gravity = 0.00027f;

	int textureID;
	
	public Bullet(Level level, Entity entity, float x, float y, float z, float hangle, float vangle, float downfall) {
		super(level);
		this.owner = entity;
		setSize(0.3F, 0.5F);
		this.damage = 3;

		this.motionX = ((float) Math.sin(Math.toRadians(hangle)) * speed);
		this.motionY = ((float) -Math.cos(Math.toRadians(hangle)) * speed);
		this.motionZ = -((float) Math.tan(Math.toRadians(vangle)) * speed);
		
		setPos(x, y, z);
	}