MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / DetachAllControllers

Method DetachAllControllers

GTE/Graphics/ControlledObject.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void ControlledObject::DetachAllControllers()
52{
53 for (auto& element : mControllers)
54 {
55 // Unbind the controller from the object.
56 element->SetObject(nullptr);
57 }
58 mControllers.clear();
59}
60
61bool ControlledObject::UpdateControllers(double applicationTime)
62{

Callers 1

DoAnimationMethod · 0.80

Calls 1

SetObjectMethod · 0.45

Tested by

no test coverage detected