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

Method setReferenceObjectByScopeId

Engine/source/afx/afxConstraint.cpp:446–456  ·  view source on GitHub ↗

Assigns an un-scoped scene-object by scope_id to the named constraint

Source from the content-addressed store, hash-verified

444
445// Assigns an un-scoped scene-object by scope_id to the named constraint
446afxConstraintID afxConstraintMgr::setReferenceObjectByScopeId(StringTableEntry which, U16 scope_id, bool is_shape)
447{
448 S32 idx = find_cons_idx_from_name(which);
449 if (idx < 0)
450 return afxConstraintID();
451
452 afxConstraintID id = afxConstraintID(idx);
453 setReferenceObjectByScopeId(id, scope_id, is_shape);
454
455 return id;
456}
457
458afxConstraintID afxConstraintMgr::setReferenceEffect(StringTableEntry which, afxEffectWrapper* ew)
459{

Callers 4

init_constraintsMethod · 0.80
enter_linger_state_cMethod · 0.80
remapObjectConstraintMethod · 0.80

Calls 5

afxConstraintIDClass · 0.85
newObjectConsFunction · 0.85
errorfFunction · 0.50
set_scope_idMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected