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

Function SetPosition

engine/particle/src/particle.cpp:548–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547
548 void SetPosition(HParticleContext context, HInstance instance, const Point3& position)
549 {
550 Instance* i = GetInstance(context, instance);
551 if (!i) return;
552 i->m_WorldTransform.SetTranslation(Vector3(position));
553 }
554
555 void SetRotation(HParticleContext context, HInstance instance, const Quat& rotation)
556 {

Callers 1

TEST_FFunction · 0.50

Calls 3

GetInstanceFunction · 0.70
Vector3Class · 0.50
SetTranslationMethod · 0.45

Tested by 1

TEST_FFunction · 0.40