Game Development Community

3D Shapes for Animation Blending?

by Chad Kilgore · in TGB Platformer Kit · 06/22/2009 (6:31 pm) · 0 replies

I am trying to have the player-character blend between his states instead of creating a separate "blend" animation for each state (e.g. ClimbUp_to_ClimbIdle, ClimbDown_to_ClimbIdle, etc). Using the 3D shape, I can supposedly blend between state animations; however, PSK does not support 3D shapes. In a previous thread, 3D Shapes?, Phillip stated that doing so *should* be relatively easy and could be done without modifying the source.

How would I go about doing this task? Either script-side or source-side solutions for me.

My initial thoughts were to modify the pskActorAnimator::registerAnimation method to allow for either an AnimatedSprite or a Shape3D. But of course, this could be adding unnecessary complications, and I'm not exactly sure how to reference the actor's t2dSceneObject (I'll continue to do some digging).

Are there any thoughts on this solution?