View Full Version : DesiredRotation in outdated tutorial?

05-27-2010, 06:24 PM
I'm very slowly making my way through the Mastering UnrealScript tutorials. I consider myself a somewhat experienced programmer but it's always rough learning a new API, especially one as vast as UnrealScript. I have no experience with Unreal before UDK. I've done some XNA and Unity work but nothing serious.

As I was working through this page:

I noticed that using the DesiredRotation variable was throwing a compile error. I checked the Actor class and found in a comment that it had been moved to Pawn! Should I change the AmbientCreatureClass to extend Pawn instead of Actor, or should I simply try to duplicate the functionality? When I checked in Pawn for the actual DesiredRotation handling code it was all wrapped up in native functions. Guess I'm not stealing their code.

05-27-2010, 06:32 PM
Searching for DesiredRotation will bring you a few threads, one interesting:


In this thread, the user steph makes a notable post.
Just remember to divide the RInterpTo instead of multiplying at the speed boost.

I finished this tutorial and it works correctly.