Can't add a force to an object whose position is set in update.

Hey,

I am trying to make a fishing line with a bobber on the end of the line. The line is simply made with the line renderer and swings about with Verlet integration. Currently, the bobber is attached to the end of the line by setting its position equal to the last point in the line in the update function, however, this constrains me from moving it in any other way, such as adding forces to make it float.

What would be an alternative way to attach the bobber to the end of the line in a way that would still allow me to add forces to the bobber?

Thanks,

Dan

You could make the real connected bobber be invisible, and then add the bobber as a child, then just twiddle that item’s local position up and down? I guess it depends on how violent you want it to be whether you’d notice the string not moving…

1 Like