Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix #49 where applyCrossFade not working for copied animators #57

Merged
merged 5 commits into from
Mar 13, 2024

Conversation

hannojg
Copy link
Member

@hannojg hannojg commented Mar 13, 2024

The issue was that in the filament code the applyCrossFade wasn't updated when they added the API to create multiple instances from one asset.
This PR updates the patch to add support for that.

Additionally a PR at filament has been added to fix it upstream:

@hannojg hannojg requested a review from mrousavy March 13, 2024 09:06
@hannojg hannojg merged commit 2a58dd4 into main Mar 13, 2024
@hannojg hannojg deleted the fix/copy-animator-transition-animation branch March 13, 2024 09:07
if (pengu.state === 'loaded') {
pengu.animator.applyAnimation(0, passedSeconds)
pengu.animator.updateBoneMatrices()
engine.getCamera().lookAt(cameraPosition, cameraTarget, cameraUp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If getCamera() is used like this all the time, maybe it makes sense to make it a readonly prop? engine.camera

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, will add an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants