Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Some questions & requests
#17
(10-08-2022, 07:18 AM)josemendez Wrote: First disable the attachment, then you may set its target to null. Otherwise you're pulling the rug from under the attachment's feet, so to speak, as it loses the reference to the target and can no longer disable the underlying constraint. Note this is a special case, when you set the target to a different object, the attachment will swap targets.

Yes, it worked! Thank you!
I feel like all these questions I'm asking should be somewhere in the examples/documentation, since it doesn't have many scripts examples. Seems like something pretty basic to do with ropes (attach, detach, change targets) and yet I'm struggling. Maybe I'm just dumb. ^^'


(10-08-2022, 07:18 AM)josemendez Wrote: Removing the last rope from the last solver in the scene will destroy the BurstColliderWorld object in the scene, as it's no longer used. This is an object that keeps track of colliders/rigidbodies in the scene and syncs them with Obi. It must be destroyed using DestroyImmediate() as it must exist in-editor, but it cannot be immediately destroyed during a contact callback since that would remove objects mid-simulation. I would recommend enabling a flag variable during collision, then destroy the rope in Update().


I will do something like this then. Thanks!
Reply


Messages In This Thread
Some questions & requests - by landosilva - 04-08-2022, 10:58 PM
RE: Some questions & requests - by josemendez - 05-08-2022, 07:57 AM
RE: Some questions & requests - by landosilva - 05-08-2022, 03:34 PM
RE: Some questions & requests - by josemendez - 05-08-2022, 04:17 PM
RE: Some questions & requests - by landosilva - 06-08-2022, 02:59 PM
RE: Some questions & requests - by josemendez - 08-08-2022, 07:44 AM
RE: Some questions & requests - by landosilva - 08-08-2022, 09:46 AM
RE: Some questions & requests - by josemendez - 08-08-2022, 10:54 AM
RE: Some questions & requests - by landosilva - 08-08-2022, 02:09 PM
RE: Some questions & requests - by josemendez - 08-08-2022, 02:24 PM
RE: Some questions & requests - by landosilva - 08-08-2022, 02:56 PM
RE: Some questions & requests - by josemendez - 08-08-2022, 03:21 PM
RE: Some questions & requests - by landosilva - 08-08-2022, 03:44 PM
RE: Some questions & requests - by josemendez - 08-08-2022, 03:46 PM
RE: Some questions & requests - by landosilva - 09-08-2022, 04:51 PM
RE: Some questions & requests - by josemendez - 10-08-2022, 07:18 AM
RE: Some questions & requests - by landosilva - 10-08-2022, 10:03 AM
RE: Some questions & requests - by josemendez - 10-08-2022, 10:15 AM
RE: Some questions & requests - by josemendez - 10-08-2022, 10:39 AM