Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime Instantiate
#2
(15-09-2022, 08:39 AM)Rexima Wrote: I used some time ago an older version from ObiRope and i have some questions.
Do i really need to instantiate a rope with an solver as parent? (if not, Is there a callback/event where i know i can unparent the rope from the solver?)

Yes, Obi actors (ropes, rods, bones, cloth, etc) all need to have a solver up their hierarchy, not necessarily as their immediate parent. Simulation is always performed in the solver’s local space.

Older Obi versions required you to manually specify a solver component for each actor and select a simulation space, newer versions automatically pick up both the solver and the simulation space when you parent the actor under a solver.

If a rope has no solver above it, it won’t be simulated or rendered. (Just like UI elements need a Canvas above them, or skeleton bones need a SkinnedMeshRenderer, etc).


Quote:Whats the best way to carry an Particle Attachment? In the earlier version there was an script called "ObiParticleHandle" which gave me the opportunity to carry the attachment.

What do you mean “carry”? An attachment is just a relationship between the rope and another object, it is not an object itself that you can “carry” or move around as it has no position of its own.

Just add a ObiParticleAttachment to your rope, select the particle group in the rope that you wish to attach, and select the rigidbody (or any other transform) as the attachment target.

Quote:I also noticed, that my rope is acting like a snake, how can i make it to behave like a cable which is more sticky?

Not sure what you mean by “sticky”, are you referring to contact friction? That’s determined by the collision materials used by the rope and the objects it collides against. You can assign a collision material to the ObiRope component, try the included “MediumFriction” one (you can also create your own collision materials for custom friction/stickiness coefficients).

Kind regards,
Reply


Messages In This Thread
Runtime Instantiate - by Rexima - 15-09-2022, 08:39 AM
RE: Runtime Instantiate - by josemendez - 15-09-2022, 11:10 AM
RE: Runtime Instantiate - by Rexima - 15-09-2022, 12:03 PM
RE: Runtime Instantiate - by josemendez - 15-09-2022, 07:30 PM