What game toolkit are you using? You can render a skeleton (or anything else) to a texture. Sometimes this is called "texture render target", "frame buffer object", or FBO. However, setting up such rendering may not be so easy and you need to allocate a texture.
您正在使用什么游戏工具包? 您可以将骨架(或其他任何物体)渲染到纹理。 有时,这称为“纹理渲染目标”,“帧缓冲区对象”或FBO。 但是,设置这种渲染可能并不容易,并且您需要分配纹理。
It looks like you could create a new skeleton instance that matches the real skeleton. You can set it to be playing whatever animation you like, and you can pause the animation so it isn't move. To do that for the frozen skeleton you'd set the animation with AnimationState setAnimation
and configure the returned TrackEntry. Set TrackEntry trackTime
to the same time when the skeleton was hit. To pause it set TrackEntry timeScale
to 0.
看起来您可以创建一个与真实骨架匹配的新骨架实例。 您可以将其设置为播放喜欢的动画,也可以暂停动画以使其不移动。 为此,您需要使用AnimationState setAnimation
设置动画并配置返回的 TrackEntry。 将 TrackEntry trackTime
设置为命中骨骼的同一时间。 要暂停它,请将 TrackEntry timeScale
设置为0。