fixed shell pos

This commit is contained in:
Luca Puderbach 2024-10-20 04:33:40 +02:00
parent e4a24c3070
commit 842eabd32e

View File

@ -36,7 +36,7 @@ public class ShellControl extends AbstractControl {
@Override @Override
protected void controlUpdate(float tpf) { protected void controlUpdate(float tpf) {
Vector3f pos = shell.getPosition(); Vector3f pos = shell.getPosition();
Vector3f fixed = new Vector3f(pos.z + 0.5f, pos.y, pos.x + 0.5f); Vector3f fixed = new Vector3f(pos.z + 0.5f, pos.y + 2f, pos.x + 0.5f);
fixed.setY(pos.y); fixed.setY(pos.y);
spatial.setLocalTranslation(fixed); spatial.setLocalTranslation(fixed);
spatial.setLocalRotation(shell.getRotation()); spatial.setLocalRotation(shell.getRotation());