PDA

View Full Version : DesiredRotation in outdated tutorial?



misterkrazy
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:
http://udn.epicgames.com/Three/MasteringUnrealScriptFunctions.html

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.

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

http://forums.epicgames.com/showthread.php?t=717076&highlight=DesiredRotation

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.

http://www.youtube.com/watch?v=Ln2LNPJl6Ww