
binary release (for DevCpp) [414 kB]:
http://ravcio.retsat1.net/~warui/irrlic ... 10-bin.zip
source release [33 kB]:
http://ravcio.retsat1.net/~warui/irrlic ... 10-src.zip
readme.txt will explain all:
"New Rotation Animator for The Irrlicht Engine 0.6 release"
version 1.0
Copyright (C) 2004 Tomasz "Warui" Nowakowski
Based on Nikolaus Gebhardt work
This files are NOT (yet i hope ;]) part of the official "Irrlicht Engine" release.
I. Instalation
===============
Just unzip all the files into your irrlich directory repleacing old ones with new ones.
You should also apply vector normalization patch:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2894
Note: binary release has this patch already applied along with some other fixes.
II. Using
==========
The following function was added to ISceneManager:
virtual ISceneNodeAnimator* createRotationAnimator(
const core::vector3df& startRotation,
const core::vector3df& endRotation,
u32 timeForTurn,
bool loop=false,
bool reverse=false
) [pure virtual]
Creates a rotation animator, which rotates the attached scene node around itself.
Parameters:
startRotation: Start rotation of the node.
endRotation: Desired end rotation of the node.
timeForTurn: Time in milli seconds how long the node should need to rotate from
the start rotation to the end rotation.
loop: If set to false, the node stops when the end rotation is reached.
If loop is true, the node continues to rotate with the same speed.
reverse: If set to true the node will rotate in opposite direction.
Returns:
Returns the animator. Attach it to a scene node with ISceneNode::addAnimator()
and the animator will animate it. If you no longer need the animator, you should call
ISceneNodeAnimator::drop(). See IUnknown::drop() for more information.
III. FAQ
=========
Q: getRotation() returns strange angles until animator finishes its work
A: This is because reverse is set to true. If you planing to stop animator befor it finishes
its work, just don't use revers switch.
Q: Your patch does not work. I can't compile / run my programs with it.
A: One of the following happend:
a) This patch is for Irrlicht 0.6. If you are using other versions or 0.6 with patches
please read changes.txt to see what you need to change in your version to make it work.
b) Binary release is for DevCpp (MinGW). If you are using other compiler you migth need
to build your own dll.
c) Binary release was compiled with some additional bug fixes and patches (not included in
source release). Build your own binaries if they cause errors.
IV. History
============
28.06.2004 - version 1.0 released