Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prefab Creation & Cable Length with Rigidbodies
#4
Quote:Just to make sure I fully understand, do you mean I should place the end connectors as children under ObiSolver? 

No, I meant that the rope itself must be a child (at any nesting level) of a ObiSolver. It's irrelevant whether the end connectors are or not, since they're regular rigidbodies and hence not simulated by Obi.

Quote:And then drag ObiSolver to the prefab folder?

What do you mean by this? there's no such thing as a specific "prefab folder" in Unity, you can have prefabs anywhere in your project. I just meant that when instantiating your rope prefab, you should make sure it's inside a solver's hierarchy.

For instance, if you have a solver in your scene that you want to simulate all your ropes, you just pass its transform as the parent. Something like:

Code:
var rope = GameObject.Instantiate(prefab, solver.transform);

let me know if you need further help. cheers!
Reply


Messages In This Thread
RE: Prefab Creation & Cable Length with Rigidbodies - by josemendez - 01-05-2024, 11:54 AM