So I'm currently developing a game where you control a cube and a ball and some other things.
The basic idea for moving the cube is to extend it dynamically depending on how much I press the trigger on the XBox-controller, make it fall over, retract it and repeat…
I have allready managed to scale the model and the collision box dynamically with the trigger, but it scales from the middle(pivot point) of the cube. Please read on…
The problem for me now is to extend/scale the cube upwards (only), not both upwards and downwards at the same time.
The second problem is the to retract/scale down the cube into it's "top".
E.g. If I extend it upwards, then fall over to the right (it's now lying on the floor), I want the cube to down-scale to it's original size, but to it's right-most position.
Is this non-uniform-type scaling on the collision box even possible withing JiglibX?