27-05-2023, 09:15 AM
Hi there,
I have searched for a solution to this and found a few good hits but nothing seems to be working for me for some reason.
I'm using Obi Rope in a VR setting as part of a ladder fall arrest system. I basically just need something whereby when the player grabs the end Obi Particle attachment of the rope and attaches it to a fall delay device which is a child of the VR player avatar. I have the grabbing bit working fine. The player can interact with the rope end no problem. It's the parenting of the obi particle attachment end to the fall delay device that's just not playing ball. There are colliders on both the delay device (parent) and the Obi Participle End (child) and obviously a rigid body on the particle end. I'm using fairly basic code with parent and child objects set in the inspector.
private void OnCollisionEnter(Collision collision)
{
if (collision.gameObject == parentObject)
{
childObject.transform.SetParent(parentObject.transform, true);
}
Hope someone can help. Many thanks.
I have searched for a solution to this and found a few good hits but nothing seems to be working for me for some reason.
I'm using Obi Rope in a VR setting as part of a ladder fall arrest system. I basically just need something whereby when the player grabs the end Obi Particle attachment of the rope and attaches it to a fall delay device which is a child of the VR player avatar. I have the grabbing bit working fine. The player can interact with the rope end no problem. It's the parenting of the obi particle attachment end to the fall delay device that's just not playing ball. There are colliders on both the delay device (parent) and the Obi Participle End (child) and obviously a rigid body on the particle end. I'm using fairly basic code with parent and child objects set in the inspector.
private void OnCollisionEnter(Collision collision)
{
if (collision.gameObject == parentObject)
{
childObject.transform.SetParent(parentObject.transform, true);
}
Hope someone can help. Many thanks.