Obi Official Forum
Bug / Crash Downgrade to 5.1 and Rope Particle attachment not work - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Bug / Crash Downgrade to 5.1 and Rope Particle attachment not work (/thread-2498.html)



Downgrade to 5.1 and Rope Particle attachment not work - okculo - 18-09-2020

Hello, I have working on a project where a rope attached to 2 different dynamic object. I build project at 5.5 but due to ios problems i downgrade it to 5.1 . Now Exacly same code ı used to attach object sometimes works sometimes not. Any help? 


private IEnumerator startingRope()
    {
        rope.GetComponent<MeshRenderer>().enabled = true;

        blueprint = ScriptableObject.CreateInstance<ObiRopeBlueprint>();
        blueprint.resolution = 0.5f;
        blueprint.path.Clear();
        blueprint.path.AddControlPoint(currentBasePoint.transform.position, -Vector3.one, Vector3.one, Vector3.one, 2f, 0.1f, 1, 1, Color.red, "start");
        blueprint.path.AddControlPoint(topPoint.transform.position, -Vector3.one, Vector3.one, Vector3.one, 2f, 0.1f, 1, 1, Color.white, "end");
      // blueprint.path.FlushEvents();

        yield return blueprint.Generate();
       
        rope.ropeBlueprint = blueprint;
        ObiParticleAttachment[] attacher;
        attacher = rope.GetComponents<ObiParticleAttachment>();
        attacher[0].target = currentBasePoint.gameObject.transform;
        attacher[0].particleGroup = blueprint.groups[0];
        attacher[1].target = topPoint.gameObject.transform;
        attacher[1].particleGroup = blueprint.groups[1];



    }




rope sometimes fall to ground sometimes only start work sometimes both work. Couldnt solve the problem here. Unity 2019.3.7f1

My objects have collider and obi collider
[attachment=774]
[attachment=775]
[attachment=776]
falls toward void
[attachment=777]


RE: Downgrade to 5.1 and Rope Particle attachment not work - josemendez - 18-09-2020

(18-09-2020, 05:36 PM)okculo Wrote: Hello, I have working on a project where a rope attached to 2 different dynamic object. I build project at 5.5 but due to ios problems i downgrade it to 5.1 . Now Exacly same code ı used to attach object sometimes works sometimes not. Any help? 


private IEnumerator startingRope()
    {
        rope.GetComponent<MeshRenderer>().enabled = true;

        blueprint = ScriptableObject.CreateInstance<ObiRopeBlueprint>();
        blueprint.resolution = 0.5f;
        blueprint.path.Clear();
        blueprint.path.AddControlPoint(currentBasePoint.transform.position, -Vector3.one, Vector3.one, Vector3.one, 2f, 0.1f, 1, 1, Color.red, "start");
        blueprint.path.AddControlPoint(topPoint.transform.position, -Vector3.one, Vector3.one, Vector3.one, 2f, 0.1f, 1, 1, Color.white, "end");
      // blueprint.path.FlushEvents();

        yield return blueprint.Generate();
       
        rope.ropeBlueprint = blueprint;
        ObiParticleAttachment[] attacher;
        attacher = rope.GetComponents<ObiParticleAttachment>();
        attacher[0].target = currentBasePoint.gameObject.transform;
        attacher[0].particleGroup = blueprint.groups[0];
        attacher[1].target = topPoint.gameObject.transform;
        attacher[1].particleGroup = blueprint.groups[1];



    }




rope sometimes fall to ground sometimes only start work sometimes both work. Couldnt solve the problem here. Unity 2019.3.7f1

My objects have collider and obi collider



falls toward void

This is a bug in Obi, was fixed in 5.3. What iOS issues were you having witb 5.5? It’s compatible with XCode 11.3.1 (latest version with properly working linker), so 5.5 should compile, link and archive fine.


RE: Downgrade to 5.1 and Rope Particle attachment not work - okculo - 21-09-2020

(18-09-2020, 06:20 PM)josemendez Wrote: This is a bug in Obi, was fixed in 5.3. What iOS issues were you having witb 5.5? It’s compatible with XCode 11.3.1 (latest version with properly working linker), so 5.5 should compile, link and archive fine.

Hello i have deleted 5.1 and imported 5.6 but i have following errors.

Assets/Obi/Scripts/Common/DataStructures/NativeList/ObiNativeList.cs(249,63): error CS0103: The name ‘UnsafeUtilityEx’ does not exist in the current context

[attachment=778]


RE: Downgrade to 5.1 and Rope Particle attachment not work - josemendez - 21-09-2020

(21-09-2020, 09:20 AM)okculo Wrote: Hello i have deleted 5.1 and imported 5.6 but i have following errors.

Assets/Obi/Scripts/Common/DataStructures/NativeList/ObiNativeList.cs(249,63): error CS0103: The name ‘UnsafeUtilityEx’ does not exist in the current context

You need to install the Collections package. Optionally, the Burst, Jobs and Mathematics packages if you wish to use Burst for simulation. See:
http://obi.virtualmethodstudio.com/tutorials/backends.html


RE: Downgrade to 5.1 and Rope Particle attachment not work - okculo - 21-09-2020

(21-09-2020, 09:31 AM)josemendez Wrote: You need to install the Collections package. Optionally, the Burst, Jobs and Mathematics packages if you wish to use Burst for simulation. See:
http://obi.virtualmethodstudio.com/tutorials/backends.html
Now i added collections package and i get this error. Enanbled full stack traces but still getting this.

[attachment=779]


RE: Downgrade to 5.1 and Rope Particle attachment not work - josemendez - 21-09-2020

(21-09-2020, 10:34 AM)okculo Wrote: Now i added collections package and i get this error. Enanbled full stack traces but still getting this.

Hi,

I'm unable to reproduce this. What does your scene contain? also, what backend are you using? (Oni or Burst)?


RE: Downgrade to 5.1 and Rope Particle attachment not work - okculo - 21-09-2020

(21-09-2020, 10:38 AM)josemendez Wrote: Hi,

I'm unable to reproduce this. What does your scene contain? also, what backend are you using? (Oni or Burst)?
i use Brust


RE: Downgrade to 5.1 and Rope Particle attachment not work - josemendez - 21-09-2020

(21-09-2020, 10:46 AM)okculo Wrote: i use Brust

Does this happen when switching to Oni?

Also, what scene is this happening in? One of the included sample scenes or your own?


RE: Downgrade to 5.1 and Rope Particle attachment not work - okculo - 23-09-2020

(21-09-2020, 10:51 AM)josemendez Wrote: Does this happen when switching to Oni?

Also, what scene is this happening in? One of the included sample scenes or your own?
 i upgrade my obirope to 5.6. it solved everything so far. Thank you for replies.