Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  problem of particle position
#3
Hi,it ‘s me
Is the particle's world position are calculated by   rope.gameObject.transform?
Because I use particleAttachment connect a particle group to the rope self, i move rope's position to move particles

set like this:
Code:
rope.GetComponents<ObiParticleAttachment>()[0].target = rope.gameObject.transform;
rope.GetComponents<ObiParticleAttachment>()[0].particleGroup = blueprint.groups[0];
move like this:
Code:
Vector3 to_new_position = new Vector3(0.0f, 0.0f, 1.0f);
rope.gameObject.transform.Translate(to_new_position, Space.World);
Reply


Messages In This Thread
problem of particle position - by FZMv587 - 23-12-2020, 02:11 PM
RE: problem of particle position - by josemendez - 23-12-2020, 02:42 PM
RE: problem of particle position - by FZMv587 - 23-12-2020, 03:04 PM
RE: problem of particle position - by josemendez - 23-12-2020, 04:38 PM