Skip to content

Conversation

@stephengold
Copy link
Member

This addresses a single piece of issue #1452.

To blend smoothly between animations, I used actionBlended(), but the resulting "halt" action is much longer than 0.5 seconds. To avoid ignoring keypresses during the "halt" action, I used simpleUpdate() to initiate the animation. If someone knows a better way to blend animations in the new system, let me know!

@tlf30
Copy link
Contributor

tlf30 commented Mar 24, 2021

Perhaps the blending issue is related to #1303?

@stephengold
Copy link
Member Author

Not directly related, but both contributing to my impression that the new animation system was never quite completed.

Here's an idea: make Action.setLength() public. Then we could use halt.setLength(0.5) to truncate the Action to its desired duration.

@stephengold stephengold added this to the v3.4.0 milestone Mar 24, 2021
@stephengold stephengold marked this pull request as draft March 24, 2021 06:39
@stephengold stephengold marked this pull request as ready for review March 26, 2021 20:45
@stephengold stephengold merged commit 231f6a5 into master Mar 30, 2021
@stephengold stephengold deleted the sgold-issue-1452 branch March 30, 2021 23:01
@stephengold stephengold added the examples specific to the jme3-examples sub-project label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples specific to the jme3-examples sub-project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants