MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / createAndAddParticle

Method createAndAddParticle

Source/GameObject.cpp:240–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void GameObject::createAndAddParticle(const char* path, int zOrder)
241{
242 if (_particle)
243 {
244 AX_SAFE_RELEASE(_particle);
245 _particle->cleanup();
246 _particle = nullptr;
247 }
248
249 _hasParticle = true;
250
251 _particle = ParticleSystemQuad::create(path);
252 _particle->setGlobalZOrder(zOrder);
253 _particle->retain();
254 _particle->stopSystem();
255
256 _particle->setPositionType(ParticleSystem::PositionType::GROUPED);
257 _particle->setRotation(getRotation());
258 _particle->start();
259}
260
261GameObject* GameObject::createObject(std::string_view frame, std::string_view glowFrame)
262{

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
setRotationMethod · 0.80

Tested by

no test coverage detected