mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-11-02 21:11:05 +01:00
fixed shell pos
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user