Animation and tweening
Posted: Thu Mar 21, 2024 4:28 am
Not sure how to describe this one but my next project will be my first venture into 3D (or 2.5) and I intend to have, for example, a player controlled character swinging a sword around. This means different poses and stances and transitions between.
If this were 2D then I would make a sprite sheet and determine the correct sprite to display while tweening.
My 3D model won't have sprites - it will have multiple 3D objects moving through 3D space using matrix transforms (I hope). Whilst the starting pose and stopping pose is known - how to tween over multiple dt's?
If a sword, or points along the sword, moves from left to right then I should try to understand the mathematical formula (y=mx + c) so I can tween to any dt value along that formula?
Is that how it's done? Could the tweens also be determined via the same matrix transforms?!
If this were 2D then I would make a sprite sheet and determine the correct sprite to display while tweening.
My 3D model won't have sprites - it will have multiple 3D objects moving through 3D space using matrix transforms (I hope). Whilst the starting pose and stopping pose is known - how to tween over multiple dt's?
If a sword, or points along the sword, moves from left to right then I should try to understand the mathematical formula (y=mx + c) so I can tween to any dt value along that formula?
Is that how it's done? Could the tweens also be determined via the same matrix transforms?!