inteja Posted July 6, 2018 Share Posted July 6, 2018 I'm a bit lost and confused about PlayAnimationAction. Here's a PG. Click on the cube to play animations. There doesn't seem to be a way to target only one of the defined animations - it always plays both. I would have expected there'd be a way to specify which animations (by name) should be played when this action is triggered. Am I missing a trick here? Quote Link to comment Share on other sites More sharing options...
inteja Posted July 6, 2018 Author Share Posted July 6, 2018 I see now that I can use different key frame ranges for each animation and target them individually that way (see updated PG). Still seems a bit counterintuitive though when animations have names and those could be used with greater clarity. But maybe I'm still missing something and there's a better alternative approach to achieving this result? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2018 Share Posted July 6, 2018 The PlayAnimationAction is designed to play all animations of a target and as you mentioned you can then defined from and to keys to pick a specific part of the timeline In your case I would recommend using ExecuteCodeAction directly:http://www.babylonjs-playground.com/#FSIXRA#3 inteja 1 Quote Link to comment Share on other sites More sharing options...
inteja Posted July 6, 2018 Author Share Posted July 6, 2018 Thanks @Deltakosh That's exactly what I was looking for. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.