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

Function SetRotation

engine/particle/src/particle.cpp:555–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553 }
554
555 void SetRotation(HParticleContext context, HInstance instance, const Quat& rotation)
556 {
557 Instance* i = GetInstance(context, instance);
558 if (!i) return;
559 i->m_WorldTransform.SetRotation(rotation);
560 }
561
562 void SetScale(HParticleContext context, HInstance instance, float scale)
563 {

Callers 1

TEST_FFunction · 0.50

Calls 2

GetInstanceFunction · 0.70
SetRotationMethod · 0.45

Tested by 1

TEST_FFunction · 0.40