08-01-2021, 02:28 PM
(08-01-2021, 02:09 PM)josemendez Wrote: I don't know if it's a typo or not, but in your code I had to replace "rodBlueprint" with "blueprint" in this line:It works! Thank you so much
it would not compile otherwise, since rodBlueprint isn't defined anywhere.
Maybe you have a member variable in your class named "rodBlueprint", but initialized to null? it would cause Unity to attempt to instantiate a null object, raising an exception ("the Object you want to instantiate is null") and stopping execution. That would generate a rope with no blueprint and would not parent it to the solver, which is exactly the behavior you're getting.
Weirdly specific I know, but it's the only explanation that comes to mind.
Maybe you can help me with another little question:
Can i also change the damping in the solver in this code?
Until now I did not find a possibilty to do this.