fixed bugs in MoveMessage
This commit is contained in:
@@ -61,6 +61,8 @@ public void update() {
|
||||
case NONE:
|
||||
throw new RuntimeException("no notification expected: " + n.getClass().getName());
|
||||
}
|
||||
|
||||
delay = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user