08-01-2021, 11:30 AM
(This post was last modified: 08-01-2021, 11:30 AM by josemendez.)
(08-01-2021, 11:00 AM)MonaGermany Wrote: Hi !
No I don't get any errors. It works, that the Solver and the rod are added to the Scene. But the Blueprint is not added to the rod and the rod is not assigned to the solver...
Both things work for me... can you step trough the code using the debugger, and see if it actually hits these two lines?:
Code:
// instantiate and set the blueprint:
rod.rodBlueprint = ScriptableObject.Instantiate(rodBlueprint);
// parent the cloth under a solver to start simulation:
rod.transform.parent = solver.transform;