MCPcopy Create free account
hub / github.com/defold/defold / GetPosition

Function GetPosition

engine/particle/src/particle.cpp:569–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 }
568
569 Vector3 GetPosition(HParticleContext context, HInstance instance)
570 {
571 Instance* i = GetInstance(context, instance);
572 if (!i) return Vector3(0);
573 return i->m_WorldTransform.GetTranslation();
574 }
575
576 static bool IsSleeping(Emitter* emitter)
577 {

Callers

nothing calls this directly

Calls 3

GetInstanceFunction · 0.70
Vector3Class · 0.50
GetTranslationMethod · 0.45

Tested by

no test coverage detected