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

Method setReferenceObject

Engine/source/afx/afxConstraint.cpp:433–443  ·  view source on GitHub ↗

Assigns an existing scene-object to the named constraint

Source from the content-addressed store, hash-verified

431
432// Assigns an existing scene-object to the named constraint
433afxConstraintID afxConstraintMgr::setReferenceObject(StringTableEntry which, SceneObject* obj)
434{
435 S32 idx = find_cons_idx_from_name(which);
436 if (idx < 0)
437 return afxConstraintID();
438
439 afxConstraintID id = afxConstraintID(idx);
440 setReferenceObject(id, obj);
441
442 return id;
443}
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)

Callers 14

init_constraintsMethod · 0.45
launch_missile_sMethod · 0.45
launch_missile_cMethod · 0.45
enter_linger_state_sMethod · 0.45
process_clientMethod · 0.45
enter_linger_state_cMethod · 0.45
remapObjectConstraintMethod · 0.45
init_constraintsMethod · 0.45
process_clientMethod · 0.45

Calls 6

afxConstraintIDClass · 0.85
newObjectConsFunction · 0.85
errorfFunction · 0.50
setMethod · 0.45
sizeMethod · 0.45
unsetMethod · 0.45

Tested by

no test coverage detected