Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Gameplay.AnimationSpring

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021

    class AnimationSpring extends Core.DeleteableObject native;

    var float tightness;               // spring tightness
    var float maximum;                 // spring maximum delta (offset from target)

    var float value;                   // current spring value
    var float target;                  // target value (should be updated each frame)

    var float normalized;              // normalized spring value in [-1,1]

    native function int Update(float delta);
    native function Snap(float target);

    overloaded function construct(float springTightness, float maximumDelta)
    {
        tightness = springTightness;
        maximum = maximumDelta;
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 15:53:06.000 - Creation time: st 23.5.2018 00:10:42.183 - Created with UnCodeX