Saltar al contenido principal

Búsqueda

Objects not Grouping with Keyframed Objects

  • Kalapixie

    Correct me if I'm wrong, but this may be an order of operations style flaw. I think what may be bugging out is that you may have keyframed things before grouping them.

    Let's say you take a cube, clone that to make a smaller cube and another cube to it's side. So you got three cubes in a line. If you group the first two cubes together, then go into that group and keyframe the second cube to move around the first, everything will work as intended. But if you then say bring the third cube into that group and make it a subgroup with the second cube, when you hit play, the second cube will move according to the keyframes, but the third cube won't.

    However, if you instead of doing that you first group the second and third cubes together, then add the first cube so you have a hierarchy of (1 + (2 + 3) ) then when you keyframe inner group of the second and third cube, the third cube should move along with the second cube as you would expect. Then you can keyframe the third cube by itself to make it move along with the second cube, but also do it's own thing relative to the second cube.

    I hope that makes sense, if it doesn't, hit me up on PSN ( Kalapixie ) and I'll send you a video or set of images detailing it more properly.

    I had similar issues trying to make a custom animated robit that wasn't using the puppet, for this weeks jam.

  • Kalapixie

    (This video is unlisted for demonstration purposes, but if unlisted is breaking NDA, I'll remove it promptly. https://youtu.be/bK9bGy43Mdg )

    In that video, all three groups have the same ultimate hierarchy. The only difference is when I keyframed the yellow cube.

    In the bottom example, I keyframed the yellow cube moving by itself, then I grouped it with the red cube. Finally I brought in the purple cube into the first group and grouped it with the yellow cube so you ultimately have (Red + (Yellow + Purple) )

    In the middle example, I grouped the yellow cube with the red cube, then I went into the group, keyframed the yellow cube moving, then brought in the purple cube into that group and grouped it with the yellow cube, so you still have (Red + (Yellow + Purple))

    In the top example, I first grouped the yellow cube with the purple cube. Then I keyframed the (Yellow + Purple) group moving. Then I grouped them with the red cube. Still (Red + (Yellow + Purple)) except the purple was grouped with yellow before I keyframed it. Now if I scoped in to the lowest level and keyframed the purple cube by itself, it would do it's own keyframe while also moving with the yellow cube.

    Hopefully that helps more than my previous reply!

  • Pixl1983

    Hey @Kalapixie! Thanks so much for your super useful explanation. You're 100% correct, which is a bit of a shame. This was not how I imagined the grouping to work.

    How would you, for example, animate an arm swinging a sword, but then change the design of that sword or swap it out without having to re-do the keyframe animation?

    Anyways, this does mean that I have to rethink my approach to this. I wasn't overly happy using keyframes for something that seemed like it should be a simple case of rotation.

    If anyone has a better way of reproducing the rotation angle of a thumb stick on screen using logic and advanced rotators, I'd be supremely grateful!!

  • Kalapixie

    For the sword swinging, what I would do is do the animation of the character without a sword in their hand at all, swinging it, then attach a tag to the characters hand that'll hold the sword, and then a teleporter in the sword hilt. You might have to finangle with getting the angle of the teleporter to match the tag, but as far the tests I've done, teleporting an object to a tag will keep that object visually attached to that tag until like 100m/s or so. After that the teleporting object visibly lags behind, but outside of remaking Rocket League, I don't see that as a particular problem with that.

    I think what happens with animations is the keyframe targets what you're targeting, so if you're targeting a single object, then that object will move independently of anything else once you group it. But if you group it first, then when you keyframe the group, it'll move the group. So an alternative you could do is group the sword with the hand before you keyframe the hand(group), and then you should be able to just bring other swords into the group (by holding them with R2 and then scoping into the group with L1 + X), and as long as those swords are positioned where the first one was, they should move with the hand.

Iniciar sesión para dejar un comentario.