home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Engine / Classes / TexRotator.uc < prev    next >
Text File  |  2003-06-23  |  760b  |  42 lines

  1. class TexRotator extends TexModifier
  2.     editinlinenew
  3.     native;
  4.  
  5. cpptext
  6. {
  7.     // UTexModifier interface
  8.     virtual FMatrix* GetMatrix(FLOAT TimeSeconds);
  9.     void PostLoad()
  10.     {
  11.         Super::PostLoad();
  12.         //!!OLDVER
  13.         if( ConstantRotation )
  14.         {
  15.             ConstantRotation = 0;
  16.             TexRotationType = TR_ConstantlyRotating;
  17.         }
  18.     }
  19. }
  20.  
  21. enum ETexRotationType
  22. {
  23.     TR_FixedRotation,
  24.     TR_ConstantlyRotating,
  25.     TR_OscillatingRotation,
  26. };
  27.  
  28. var Matrix M;
  29. var() ETexRotationType TexRotationType;
  30. var() rotator Rotation;
  31. var deprecated bool ConstantRotation;
  32. var() float UOffset;
  33. var() float VOffset;
  34. var() rotator OscillationRate;
  35. var() rotator OscillationAmplitude;
  36. var() rotator OscillationPhase;
  37.  
  38. defaultproperties
  39. {
  40.     TexRotationType=TR_FixedRotation
  41. }
  42.