42 lines
760 B
Ucode
42 lines
760 B
Ucode
class TexRotator extends TexModifier
|
|
editinlinenew
|
|
native;
|
|
|
|
cpptext
|
|
{
|
|
// UTexModifier interface
|
|
virtual FMatrix* GetMatrix(FLOAT TimeSeconds);
|
|
void PostLoad()
|
|
{
|
|
Super::PostLoad();
|
|
//!!OLDVER
|
|
if( ConstantRotation )
|
|
{
|
|
ConstantRotation = 0;
|
|
TexRotationType = TR_ConstantlyRotating;
|
|
}
|
|
}
|
|
}
|
|
|
|
enum ETexRotationType
|
|
{
|
|
TR_FixedRotation,
|
|
TR_ConstantlyRotating,
|
|
TR_OscillatingRotation,
|
|
};
|
|
|
|
var Matrix M;
|
|
var() ETexRotationType TexRotationType;
|
|
var() rotator Rotation;
|
|
var deprecated bool ConstantRotation;
|
|
var() float UOffset;
|
|
var() float VOffset;
|
|
var() rotator OscillationRate;
|
|
var() rotator OscillationAmplitude;
|
|
var() rotator OscillationPhase;
|
|
|
|
defaultproperties
|
|
{
|
|
TexRotationType=TR_FixedRotation
|
|
}
|