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

Method afxXM_RandomRot

Engine/source/afx/xm/afxXM_RandomRot.cpp:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//
169
170afxXM_RandomRot::afxXM_RandomRot(afxXM_RandomRotData* db, afxEffectWrapper* fxw)
171: afxXM_Base(db, fxw)
172{
173 Point3F rand_dir = MathUtils::randomDir(db->axis, db->theta_min, db->theta_max, db->phi_min, db->phi_max);
174 rand_ori = MathUtils::createOrientFromDir(rand_dir);
175}
176
177void afxXM_RandomRot::updateParams(F32 dt, F32 elapsed, afxXM_Params& params)
178{

Callers

nothing calls this directly

Calls 2

randomDirFunction · 0.85
createOrientFromDirFunction · 0.85

Tested by

no test coverage detected