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

Engine.AnimNodeSynch


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
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 *
 * Animation Node used to synch childs.
 * Would be typically used to synch several walk/run/crouch cycles together.
 *
 * This node works by using the most relevant node in the final blend as the master node,
 * to update all the others (slaves).
 * This requires all cycles to be relatively synched (i.e. left foot is down on all cycles at 0.25% of the animation, regarless of its length).
 */

class AnimNodeSynch extends AnimNodeBlendBase
	native(Anim);

/** definition of a group of AnimNodeSequence to synchronize together */
struct native SynchGroup
{
	/** Cached array of anim node sequence nodes to synchronize */
	var				Array<AnimNodeSequence>	SeqNodes;
	/** Last master node used, do not search for a new one, if this one has a full weight... */
	var	transient	AnimNodeSequence		MasterNode;
	/** Name of group. */
	var()			Name					GroupName;
	/** If FALSE, do not trigger slave nodes notifies. */
	var()			bool					bFireSlaveNotifies;
	/** Rate Scale */
	var()			float					RateScale;

	structdefaultproperties
	{
		RateScale=1.f
	}
};


/** List of groups to synchronize */
var()	Array<SynchGroup>	Groups;

// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
	

/** Add a node to an existing group */
native final function AddNodeToGroup(AnimNodeSequence SeqNode, Name GroupName);

/** Remove a node from an existing group */
native final function RemoveNodeFromGroup(AnimNodeSequence SeqNode, Name GroupName);

/** Accesses the Master Node driving a given group */
native final function AnimNodeSequence GetMasterNodeOfGroup(Name GroupName);

/** Force a group at a relative position. */
native final function ForceRelativePosition(Name GroupName, FLOAT RelativePosition);

/** Get the relative position of a group. */
native final function float GetRelativePosition(Name GroupName);

/** Adjust the Rate Scale of a group */
native final function SetGroupRateScale(Name GroupName, FLOAT NewRateScale);

defaultproperties
{
   Children(0)=(Name="Input",Weight=1.000000)
   bFixNumChildren=True
   Name="Default__AnimNodeSynch"
   ObjectArchetype=AnimNodeBlendBase'Engine.Default__AnimNodeBlendBase'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:17:58.000 - Creation time: sk 18-3-2018 10:01:04.994 - Created with UnCodeX