02-12-2024, 02:46 PM
Hello!
I have a Rope with two static attachments on it's endings.
I need to periodically show this rope in different places of the scene, between different objects in space.
I use only one rope, simply turning it and it's attachments off and on when needed (by gameobject.setActive). The problem is that if you turn it on, pause for half a second, for example, and then move the attachments to the desired positions, then everything is ok, rope moves there it should be (with wild stretching, but ok).
But if you turn it on and immediately give the attachments new positions, then the rope don't moves from its place.
What is the best way to move the attachments (these are ordinary empty Transforms) so that the rope immediately moves to the desired place and stays there until the next turn off?
I have a Rope with two static attachments on it's endings.
I need to periodically show this rope in different places of the scene, between different objects in space.
I use only one rope, simply turning it and it's attachments off and on when needed (by gameobject.setActive). The problem is that if you turn it on, pause for half a second, for example, and then move the attachments to the desired positions, then everything is ok, rope moves there it should be (with wild stretching, but ok).
But if you turn it on and immediately give the attachments new positions, then the rope don't moves from its place.
What is the best way to move the attachments (these are ordinary empty Transforms) so that the rope immediately moves to the desired place and stays there until the next turn off?