Ball animation

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
eugen_

Ball animation

Post by eugen_ »

i need to make a ball, when hitting the wall, to compress and decompress because of its height...what is the simple way of doing this?
Thanks!!
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

just use setScale. e.g. ball->setScale(core::vector3df(1.0f,1.0f,0.5f)) will make the ball half as thick on the z axis. It should be pretty easy to implement this (as an animator, maybe) so it looks smooth.
Post Reply