Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Gameplay.ControllableTexturePanner


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
class ControllableTexturePanner extends Engine.TexModifier
	native;

cpptext
{
	// UTexModifier interface
	virtual FMatrix* GetMatrix(FLOAT TimeSeconds)
	{
		FLOAT du = Scale * PanDirection.X;
		FLOAT dv = Scale * PanDirection.Y;

		M = FMatrix (
						FPlane(1,0,0,0),
						FPlane(0,1,0,0),
						FPlane(du,dv,1,0),
						FPlane(0,0,0,1)
					);

		return &M;
	}
}

var() Vector PanDirection;
var Matrix M;
var float Scale;

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 15:53:26.000 - Creation time: st 23.5.2018 00:10:42.948 - Created with UnCodeX