I am using the robot.mesh as an enemy in my project. the robot will walk towards the player and when close enough, it will perform an attack animation. my issue with the robot attack animation is that it's very fast, i'd like to slow it down if possible. Is this possible? if so, how?
Thanks in advance!
Can I slow down animations through ogre?
-
- Gnoblar
- Posts: 5
- Joined: Sun Apr 10, 2016 1:27 pm
- Kojack
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 534
Re: Can I slow down animations through ogre?
To make an animation play, you need to add time to it. Instead of using the last frame's delta time directly, scale the time value. For example if you multiply the delta time by 0.5 before adding to the animation, it will play at half speed.