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

UTGame.DemoCamMod_ScreenShake

Extends
CameraModifier
Modifiers
native config ( Camera )

Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Core.Object
|   
+-- Engine.CameraModifier
   |   
   +-- UTGame.DemoCamMod_ScreenShake

Constants Summary
Inherited Contants from Core.Object
DegToRad, INDEX_NONE, MaxInt, Pi, RadToDeg

Variables Summary
Array<ScreenShakeStruct>Shakes
DemoCamMod_ScreenShake
ScreenShakeStructTestShake
Inherited Variables from Engine.CameraModifier
bDebug, bDisabled, bPendingDisable, CameraOwner
Inherited Variables from Core.Object
Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject

Enumerations Summary
EShakeParam
ESP_OffsetRandom, ESP_OffsetZero,
Inherited Enumerations from Core.Object
EAxis, EInputEvent, EInterpCurveMode, EInterpMethodType, ETickingGroup

Structures Summary
ScreenShakeStruct
TimeToGo, TimeDuration, RotAmplitude, RotFrequency, RotSinOffset, RotParam, LocAmplitude, LocFrequency, LocSinOffset, LocParam, FOVAmplitude, FOVFrequency, FOVSinOffset, FOVParam
ShakeParams
X, Y, Z, Padding
Inherited Structures from Core.Object
Box, BoxSphereBounds, Color, Cylinder, double, DynamicMap_Mirror, Guid, IndirectArray_Mirror, InterpCurveFloat, InterpCurvePointFloat, InterpCurvePointQuat, InterpCurvePointTwoVectors, InterpCurvePointVector, InterpCurvePointVector2D, InterpCurveQuat, InterpCurveTwoVectors, InterpCurveVector, InterpCurveVector2D, IntPoint, LinearColor, Map_Mirror, Matrix, MultiMap_Mirror, Plane, pointer, Quat, qword, RawDistribution, RenderCommandFence, Rotator, TextureMipBulkData_Mirror, ThreadSafeCounter, TPOV, TwoVectors, UntypedBulkData_Mirror, Vector, Vector2D, Vector4

Functions Summary
function AddScreenShake (ScreenShakeStruct NewShake ))
functionScreenShakeStruct ComposeNewShake (float Duration, vector newRotAmplitude, vector newRotFrequency, vector newLocAmplitude, vector newLocFrequency, float newFOVAmplitude, float newFOVFrequency ))
function DumpShakeInfo (ScreenShakeStruct Shake ))
functionfloat InitializeOffset (EShakeParam Param ))
functionScreenShakeStruct InitializeShake (ScreenShakeStruct NewShake ))
functionbool ModifyCamera (Camera Camera, float DeltaTime, out TPOV OutPOV ))
function StartNewShake (float Duration, vector newRotAmplitude, vector newRotFrequency, vector newLocAmplitude, vector newLocFrequency, float newFOVAmplitude, float newFOVFrequency ))
function UpdateScreenShake (float DeltaTime, out ScreenShakeStruct Shake, out TPOV OutPOV)
Inherited Functions from Engine.CameraModifier
AddCameraModifier, DisableModifier, EnableModifier, Init, IsDisabled, ModifyCamera, ProcessViewRotation, RemoveCameraModifier, ToggleModifier
Inherited Functions from Core.Object
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, Asc, Asin, Atan, BeginState, ByteToFloat, Caps, Chr, Clamp, ClampLength, ClampRotAxis, ClassIsChildOf, ClearConfig, ClockwiseFrom, ColorToLinearColor, ContinuedState, Cos, Cross, Disable, Dot, DumpStateStack, DynamicLoadObject, Enable, EndState, Exp, FClamp, FCubicInterp, FindDeltaAngle, FindObject, FInterpEaseIn, FInterpEaseInOut, FInterpEaseOut, FInterpTo, FloatToByte, FMax, FMin, FPctByRange, FRand, GetAngularDegreesFromRadians, GetAngularDistance, GetAngularFromDotDist, GetAxes, GetDotDistance, GetEnum, GetFuncName, GetHeadingAngle, GetNetFuncName, GetPackageName, GetPerObjectConfigSections, GetRangePctByValue, GetRangeValueByPct, GetSpecialValue, GetStateName, GetUnAxes, GotoState, InStr, IsA, IsChildState, IsInState, IsNetScript, IsPendingKill, IsUTracing, IsZero, JoinArray, Left, Len, Lerp, Localize, Locs, Loge, LogInternal, MakeColor, MakeLinearColor, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, NormalizeRotAxis, OrthoRotation, ParseStringIntoArray, PathName, PausedState, PointDistToLine, PointDistToPlane, PointInBox, PoppedState, PopState, ProjectOnTo, PushedState, PushState, QuatDot, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RandRange, RDiff, Repl, Right, RInterpTo, RLerp, RotRand, Round, RSize, RSmerp, SaveConfig, SClampRotAxis, ScriptTrace, SetSpecialValue, SetUTracing, Sin, Split, Sqrt, Square, StaticClearConfig, StaticSaveConfig, Tan, TimeStamp, ToHex, TransformVectorByRotation, UnwindHeading, vect2d, VInterpTo, VLerp, VRand, VSize, VSize2D, VSizeSq, VSizeSq2D, VSmerp, WarnInternal, ^, ^^, |, ||, ~, ~=


Variables Detail

Shakes Source code

var Array<ScreenShakeStruct> Shakes;
Active ScreenShakes array

DemoCamMod_ScreenShake

TestShake Source code

var(DemoCamMod_ScreenShake) ScreenShakeStruct TestShake;
Always active ScreenShake for testing purposes


Enumerations Detail

EShakeParam Source code

enum EShakeParam
{
ESP_OffsetRandom, ESP_OffsetZero,
};
Shake start offset parameter


Structures Detail

ScreenShakeStruct Source code

struct ScreenShakeStruct
{
var(DemoCamMod_ScreenShake) float FOVAmplitude;
var(DemoCamMod_ScreenShake) float FOVFrequency;
var(DemoCamMod_ScreenShake) EShakeParam FOVParam;
var float FOVSinOffset;
var(DemoCamMod_ScreenShake) vector LocAmplitude;
var(DemoCamMod_ScreenShake) vector LocFrequency;
var(DemoCamMod_ScreenShake) ShakeParams LocParam;
var vector LocSinOffset;
var(DemoCamMod_ScreenShake) vector RotAmplitude;
var(DemoCamMod_ScreenShake) vector RotFrequency;
var(DemoCamMod_ScreenShake) ShakeParams RotParam;
var vector RotSinOffset;
var(DemoCamMod_ScreenShake) float TimeDuration;
var(DemoCamMod_ScreenShake) float TimeToGo;
};

FOVAmplitude:
FOV amplitude
FOVFrequency:
FOV frequency
FOVParam:
FOV parameters
FOVSinOffset:
FOV Sine offset
LocAmplitude:
view offset amplitude
LocFrequency:
view offset frequency
LocParam:
location parameters
LocSinOffset:
view offset Sine offset
RotAmplitude:
view rotation amplitude
RotFrequency:
view rotation frequency
RotParam:
rotation parameters
RotSinOffset:
view rotation Sine offset
TimeDuration:
Duration in seconds of current screen shake
TimeToGo:
Time in seconds to go until current screen shake is finished

ShakeParams Source code

struct ShakeParams
{
var transient const byte Padding;
var(DemoCamMod_ScreenShake) EShakeParam X;
var(DemoCamMod_ScreenShake) EShakeParam Y;
var(DemoCamMod_ScreenShake) EShakeParam Z;
};
Shake vector params


Functions Detail

AddScreenShake Source code

final function AddScreenShake ( ScreenShakeStruct NewShake ) )
Add a new screen shake to the list

ComposeNewShake Source code

final function ScreenShakeStruct ComposeNewShake ( float Duration, vector newRotAmplitude, vector newRotFrequency, vector newLocAmplitude, vector newLocFrequency, float newFOVAmplitude, float newFOVFrequency ) )
ComposeNewShake Take Screen Shake parameters and create a new ScreenShakeStruct variable
@param Duration Duration in seconds of shake
@param newRotAmplitude view rotation amplitude (pitch,yaw,roll)
@param newRotFrequency frequency of rotation shake
@param newLocAmplitude relative view offset amplitude (x,y,z)
@param newLocFrequency frequency of view offset shake
@param newFOVAmplitude fov shake amplitude
@param newFOVFrequency fov shake frequency

DumpShakeInfo Source code

function DumpShakeInfo ( ScreenShakeStruct Shake ) )

InitializeOffset Source code

final static function float InitializeOffset ( EShakeParam Param ) )
Initialize sin wave start offset

InitializeShake Source code

final function ScreenShakeStruct InitializeShake ( ScreenShakeStruct NewShake ) )
Initialize screen shake structure

ModifyCamera Source code

function bool ModifyCamera ( Camera Camera, float DeltaTime, out TPOV OutPOV ) )
@see CameraModifer::ModifyCamera

StartNewShake Source code

function StartNewShake ( float Duration, vector newRotAmplitude, vector newRotFrequency, vector newLocAmplitude, vector newLocFrequency, float newFOVAmplitude, float newFOVFrequency ) )
StartNewShake
@param Duration Duration in seconds of shake
@param newRotAmplitude view rotation amplitude (pitch,yaw,roll)
@param newRotFrequency frequency of rotation shake
@param newLocAmplitude relative view offset amplitude (x,y,z)
@param newLocFrequency frequency of view offset shake
@param newFOVAmplitude fov shake amplitude
@param newFOVFrequency fov shake frequency

UpdateScreenShake Source code

native function UpdateScreenShake ( float DeltaTime, out ScreenShakeStruct Shake, out TPOV OutPOV )
Update a ScreenShake


Defaultproperties

defaultproperties
{
   TestShake=(TimeDuration=1.000000,RotAmplitude=(X=100.000000,Y=100.000000,Z=200.000000),RotFrequency=(X=10.000000,Y=10.000000,Z=25.000000),LocAmplitude=(X=0.000000,Y=3.000000,Z=5.000000),LocFrequency=(X=1.000000,Y=10.000000,Z=20.000000),FOVAmplitude=2.000000,FOVFrequency=5.000000)
   Name="Default__DemoCamMod_ScreenShake"
   ObjectArchetype=CameraModifier'Engine.Default__CameraModifier'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:36.098 - Created with UnCodeX