Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Conversation

@Jsynk
Copy link

@Jsynk Jsynk commented Feb 19, 2016

Added a function in modelrender to support multiple animations it´s kinda like setAnimation+setAnimationTime(optional) used multiple times for each animation with the exception that it uses updatePose immediately and is able to pass a ignoreBoneNameFilter(RegExp) to the updatePose function so the animations can ignore to update certain bones and in that way you can use

let animations = [];
animations.push({ name:'run', time: this.ani['run'].cur_time });
animations.push({ name:'aimGunZ', time: aimAngleZ, ignoreBoneNameFilter: /legs|hips/g });
this.actor.modelRenderer.setMultipleAnimations(animations);

animation 1 would set the run pose on all bones
animation 2 would set aim gun pose for all bones except those who has legs or hips in their name

this is my first week programming with typescript and with the superpower-game source code
hopefully it isn´t to bad.

@elisee
Copy link
Contributor

elisee commented Feb 21, 2016

Hey! Thanks for the pull request. Sounds like a pretty cool addition :). We're a bit backlogged so it might take a little while till we get to it but I'm looking forward to reviewing it!

@Jsynk
Copy link
Author

Jsynk commented Feb 21, 2016

Sweet looking forward to it and best of luck to all of you on your new jobs and all. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants