Set particles to model anchor point

Hi All,

I’ve been trying to attach a particle system to the anchor point of a model within a node. I’ve attempted something like this (this.node being the model with the anchor point):

update(deltaTime: number) {
  this.particle.node.setPosition(this.node.getChildByName("ModelWithAnchor").getPosition());
}

It seems to act strangely, it moves the particles to a different position but then it does not move with the model.

Anyone have any ideas?

Thanks,
-iDev

Turns out:

update(deltaTime: number) {
  this.particle.node.setPosition(this.node.getChildByName("ModelWithAnchor").getWorldPosition());
}

Did the trick.