Hi,
I instantiate ropes in game but can't change position of them on instantiate and they appear on where they are supposed to be and then stuck. I change start and end particle attachment positions plus rope transform position
I am using the code below
Here is a video : Video
Can anyone show me the direction where I do the mistake?
Thanks!
I instantiate ropes in game but can't change position of them on instantiate and they appear on where they are supposed to be and then stuck. I change start and end particle attachment positions plus rope transform position
I am using the code below
Code:
Rope newRope = Instantiate(ropeSet.ropeObject, ropeSet.transform);
newRope.transform.position = newRopePoint.transform.position;
newRope.ropeStartPoint.SetParent(transform);
newRope.ropeEndPoint.SetParent(newRopePoint.transform);
newRope.ropeStartPoint.localPosition = Vector3.zero;
newRope.ropeEndPoint.localPosition = Vector3.zero;
Here is a video : Video
Can anyone show me the direction where I do the mistake?
Thanks!