Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pin Constraints Vanishing
#4
(09-12-2017, 02:00 AM)phoberman Wrote: I think I've found a workaround – haven't tested it thoroughly yet, but so far it seems to work: Pin Constraints work as long as the ObiRope is not an instance of a prefab. No idea why this would be, but if I select 'GameObject/Break Prefab Instance' before setting up my Pin Constraints, everything behaves the way it should. 

Josh, I'd be curious whether this works for you; since I have no idea whether your ObiRopes were prefabs, I don't know if this will help you. 

In any case, this seems to be a bug & it should get fixed.

If the rope and the object being referenced (the collider in the pin constraint) are not part of the same prefab, the rope will lose all references to that object upon instantiation. This is just how prefabs work in Unity. If you want a prefab to maintain a reference to an object that is not contained in the prefab, you must either:

- Include the referenced object in the prefab.
- Re-set the reference after instantiation yourself.

Anyway, I've tried to reproduce the issue you and PhantomBadger describe (when working with a regular rope, not a prefab) to no avail. If you could provide the steps you followed to reproduce it it would be of great help!
Reply


Messages In This Thread
Pin Constraints Vanishing - by PhantomBadger - 14-11-2017, 11:56 AM
RE: Pin Constraints Vanishing - by phoberman - 08-12-2017, 10:52 PM
RE: Pin Constraints Vanishing - by phoberman - 09-12-2017, 02:00 AM
RE: Pin Constraints Vanishing - by josemendez - 10-12-2017, 07:46 PM
RE: Pin Constraints Vanishing - by phoberman - 14-12-2017, 04:43 AM