![]() |
Help Cant change rope position on instantiate - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help Cant change rope position on instantiate (/thread-2920.html) |
Cant change rope position on instantiate - boulder - 11-05-2021 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 Code: Rope newRope = Instantiate(ropeSet.ropeObject, ropeSet.transform); Here is a video : Video Can anyone show me the direction where I do the mistake? Thanks! RE: Cant change rope position on instantiate - josemendez - 11-05-2021 When/how are you parenting the rope to a solver? Keep in mind that the rope will start simulating right away after placing it under a solver. Changing its transform will no longer have any effect afterwards, only objects it is attached to. Instantiate the rope, move it around, then parent it to a solver. RE: Cant change rope position on instantiate - boulder - 11-05-2021 Yes, that solved the problem! I positioned the rope and then give one yield break before parenting to solver in case somebody would need it. Thanks ! |