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

MojoActions.TsActionInterpolateBase


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
class TsActionInterpolateBase extends TsAction
	abstract native;

///////////////////////////////////////////////////////////////////////////////
// constants used by native interpolation
///////////////////////////////////////////////////////////////////////////////
// native code updates this keyframe var with the current object position/rotation
var const MojoKeyframe cur_keyframe;

// hermite position vars
var const vector src_tangent;
var const vector dest_tangent;
var const vector src_position;
var const vector dest_position;

// quaternions are used internally for rotation... we have to define spacer equivs here
var const transient noexport float sqx,sqy,sqz,sqw;	// source rotation
var const transient noexport float dqx,dqy,dqz,dqw;	// dest rotation
var const transient noexport float iqx,iqy,iqz,iqw;	// intermediate rotation for squad

final function ApplyCurrentKeyframePos()
{
	Actor.setLocation(cur_keyframe.position);
	Actor.setRotation(cur_keyframe.rotation);
}

function StartActorInterpolation()
{
	if (Actor != None)
	{
		Actor.GotoState('');
		Actor.SetPhysics(PHYS_None);
		Actor.bInterpolating = true;
	}
}

function FinishActorInterpolation()
{
	if (Actor != None)
		Actor.bInterpolating = false;
}

defaultproperties
{
	DName				="Interpolate"
	Track				="Position"
	Help				="Interpolate an object"
	ModifiesLocation = true
}

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