MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / ea_update

Method ea_update

Engine/source/afx/ea/afxEA_Model.cpp:106–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool afxEA_Model::ea_update(F32 dt)
107{
108 if (!model)
109 {
110 // create and register effect
111 model = new afxModel();
112 model->onNewDataBlock(model_data, false);
113 if (!model->registerObject())
114 {
115 delete model;
116 model = 0;
117 Con::errorf("afxEA_Model::ea_update() -- effect failed to register.");
118 return false;
119 }
120 deleteNotify(model);
121
122 model->setSequenceRateFactor(mDatablock->rate_factor/ mProp_time_factor);
123 model->setSortPriority(mDatablock->sort_priority);
124 }
125
126 if (model)
127 {
128 if (mDo_fades)
129 {
130 model->setFadeAmount(mFade_value);
131 }
132 model->setTransform(mUpdated_xfm);
133 model->setScale(mUpdated_scale);
134 }
135
136 return true;
137}
138
139void afxEA_Model::ea_finish(bool was_stopped)
140{

Callers

nothing calls this directly

Calls 8

setSequenceRateFactorMethod · 0.80
errorfFunction · 0.50
onNewDataBlockMethod · 0.45
registerObjectMethod · 0.45
setSortPriorityMethod · 0.45
setFadeAmountMethod · 0.45
setTransformMethod · 0.45
setScaleMethod · 0.45

Tested by

no test coverage detected