MCPcopy Create free account
hub / github.com/carbonengine/trinity / Update

Method Update

trinity/Controllers/Actions/Tr2ActionPython.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void Tr2ActionPython::Update( Be::Time realTime, Be::Time simTime )
130{
131 ContinueOnMainThread( [self = Tr2ActionPythonPtr( this ),
132 controllerPtr = ITr2ActionControllerPtr( m_controller ),
133 owner = IRootPtr( m_controller->GetOwner() ),
134 realDt = TimeAsFloat( realTime - m_prevRealTime ),
135 simDt = TimeAsFloat( simTime - m_prevSimTime )]() {
136 self->m_vtable.onUpdate.CallVoid( owner, controllerPtr, realDt, simDt );
137 } );
138 m_prevRealTime = realTime;
139 m_prevSimTime = simTime;
140}
141
142BluePy Tr2ActionPython::GetInstance() const
143{

Callers

nothing calls this directly

Calls 2

ContinueOnMainThreadFunction · 0.85
GetOwnerMethod · 0.45

Tested by

no test coverage detected