Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
CLerpAnimEffectInterval Class Reference

This interval lerps between different amounts of control effects for various AnimControls that might be playing on an actor. More...

Inheritance diagram for CLerpAnimEffectInterval:
CLerpInterval CInterval

List of all members.

Public Member Functions

 CLerpAnimEffectInterval (string name, double duration, BlendType blend_type)
 addControl (AnimControl control, string name, float begin_effect, float end_effect)
 Adds another AnimControl to the list of AnimControls affected by the lerp.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

This interval lerps between different amounts of control effects for various AnimControls that might be playing on an actor.

It's used to change the blending amount between multiple animations.

The idea is to start all the animations playing first, then use a CLerpAnimEffectInterval to adjust the degree to which each animation affects the actor.


Constructor & Destructor Documentation

CLerpAnimEffectInterval ( string  name,
double  duration,
BlendType  blend_type 
)

Member Function Documentation

addControl ( AnimControl  control,
string  name,
float  begin_effect,
float  end_effect 
)

Adds another AnimControl to the list of AnimControls affected by the lerp.

This control will be lerped from begin_effect to end_effect over the period of the lerp.

The AnimControl name parameter is only used when formatting the interval for output.

static TypeHandle getClassType ( ) [static]

Reimplemented from CLerpInterval.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties