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

Interpolate strategy not syncing additional netScheme properties #39

Closed
javilumbrales opened this issue Mar 17, 2017 · 2 comments
Closed
Labels

Comments

@javilumbrales
Copy link

javilumbrales commented Mar 17, 2017

I noticed that when setting this strategy, any additional properties set in netScheme doesn't get synced. Digging in the code noticed that there are's a call to syncTo only when the object is created but further updates only update the position. Temporarily work-around extending interpolate method on the dynamic object as follows, ie:

class myobject extends DynamicObject {
interpolate(nextObj, playPercentage, worldSettings) {
   super.interpolate(nextObj, playPercentage, worldSettings);
   this.height = nextObj.height;
   this.health = nextObj.health;
   this.shield = nextObj.shield;
   this.kind = nextObj.kind;
   this.skills = nextObj.skills;
} 
}
@namel
Copy link
Member

namel commented Mar 18, 2017

This is a critical bug. I will create a hotfix for this.

@namel namel added the bug label Mar 18, 2017
@namel namel closed this as completed in 8ac3d87 Mar 18, 2017
@javilumbrales
Copy link
Author

wow, that was super quick! Thank you very much @namel :)

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

No branches or pull requests

2 participants