Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to attach a GameObject to a rope from script?
#4
(12-06-2021, 03:05 PM)wakin001 Wrote: Thanks for your reply.
pin constraint works exactly as what I need.

But, after the gameobjet is attached to the rope, the rope is moving slightly.
The attached gameobject is rigidbody.
Before attaching, the rope is static perfectly.
How do I make the rope be in static after attaching rigidbody objects?

As long as you've passed the correct offset to the pin constraint, the rope should not move at all.

You should use the current particle position expressed in the rigidbody's local space.

Can you share the code you used?
Reply


Messages In This Thread
RE: How to attach a GameObject to a rope from script? - by josemendez - 14-06-2021, 07:34 AM