fixed bugs in MoveMessage

This commit is contained in:
Cedric Beck
2024-12-08 19:10:25 +01:00
parent 1be2d6aa13
commit 5e27473875
8 changed files with 34 additions and 24 deletions

View File

@@ -61,6 +61,8 @@ public void update() {
case NONE:
throw new RuntimeException("no notification expected: " + n.getClass().getName());
}
delay = 0;
}
}
}

View File

@@ -51,7 +51,8 @@ protected void controlUpdate(float tpf) {
);
// Stop rolling when angular velocity is close to zero
if (angularVelocity.lengthSquared() < 3f) {
// if (angularVelocity.lengthSquared() < 3f) {
if(true){
slerp = true;
}
}
@@ -65,7 +66,8 @@ protected void controlUpdate(float tpf) {
spatial.setLocalRotation(interpolated);
// Stop rolling once duration is complete
if (timeElapsed >= 1.0f) {
// if (timeElapsed >= 1.0f) {
if(true){
isRolling = false;
slerp = false;
actionAfter.run();