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:
move like this:
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];
Code:
Vector3 to_new_position = new Vector3(0.0f, 0.0f, 1.0f);
rope.gameObject.transform.Translate(to_new_position, Space.World);