Search Forums

(Advanced Search)

Latest Threads
ObiBone on a tiny creatur...
Forum: Obi Rope
Last Post: Lighbreak
11 hours ago
» Replies: 1
» Views: 100
Pre-purchase: Four 60m fi...
Forum: Obi Rope
Last Post: josemendez
25-11-2026, 11:52 AM
» Replies: 1
» Views: 701
When To Add New Obi Solve...
Forum: Obi Rope
Last Post: josemendez
24-11-2026, 03:46 PM
» Replies: 1
» Views: 1,007
Could i implement viscous...
Forum: Obi Fluid
Last Post: josemendez
16-11-2026, 01:03 PM
» Replies: 1
» Views: 727
Substep-dependent normalI...
Forum: Obi Rope
Last Post: josemendez
11-11-2026, 05:50 PM
» Replies: 4
» Views: 1,779
How to make a phone wire
Forum: Obi Rope
Last Post: Ivango7599
06-11-2026, 08:09 PM
» Replies: 8
» Views: 22,947
Crash when building for C...
Forum: Obi Rope
Last Post: gnovos
01-11-2026, 01:52 AM
» Replies: 0
» Views: 789
Collisions pass through m...
Forum: Obi Softbody
Last Post: TubbyCrumbles
18-10-2026, 03:21 PM
» Replies: 0
» Views: 861
2D URP Renderer
Forum: Obi Fluid
Last Post: josemendez
16-10-2026, 08:32 AM
» Replies: 1
» Views: 1,105
Obi 8 feature list
Forum: Announcements
Last Post: Qriva0
14-10-2026, 09:10 AM
» Replies: 5
» Views: 2,137

 
  Using ObiCloth with 2D objects?
Posted by: matchalover - 10-08-2017, 06:21 AM - Forum: Obi Cloth - Replies (3)

Is there possible to use ObiCloth with 2D objects? I'm trying to simulate an 2D ball with water inside for my game in Unity3D.

Print this item

  Figure out what Actor was collided with
Posted by: niZmo - 09-08-2017, 12:40 AM - Forum: Obi Rope - Replies (4)

I am going to be cutting ropes, with multiple ropes on one solver. I have a knife which tears the rope at the particle index collided with. The only problem is I don't know how to get which rope is being collided with to cut the right one. I've looked through the classes and couldn't find anything. Right now I have a public field to apply the tear to a rope. Here is the code, which is applied to the knife object.

Code:
using UnityEngine;
using Obi;

public class RopeCutter : MonoBehaviour
{
   public ObiSolver solver;
   public ObiRope rope;


   void OnEnable()
   {
       solver.OnCollision += Solver_OnCollision;
   }

   void OnDisable()
   {
       solver.OnCollision -= Solver_OnCollision;
   }

   void Solver_OnCollision(object sender, Obi.ObiSolver.ObiCollisionEventArgs e)
   {
       if (solver.colliderGroup == null) return;

       foreach (Oni.Contact c in e.contacts)
       {
           // make sure this is an actual contact:
           if (c.distance < 0.01f)
           {
               // get the collider:
               //Collider collider = solver.colliderGroup.colliders[c.other];
               
               // Cut at particle index
               
               CutRopeAtIndex(rope, c.particle);
           }
       }
   }

   void CutRopeAtIndex(ObiRope rope, int index)
   {
       // remove constraints from solver:
       rope.DistanceConstraints.RemoveFromSolver(null);
       rope.BendingConstraints.RemoveFromSolver(null);

       rope.Tear(index); // tear the fifth distance constraint.
                         // you could call Tear() as many times as you wish here.

       // add constraints to solver
       rope.BendingConstraints.AddToSolver(rope);
       rope.DistanceConstraints.AddToSolver(rope);

       // update active bending constraints:
       rope.BendingConstraints.SetActiveConstraints();

       // only for cloth: commit changes to the topology:
       // UpdateDeformableTriangles();

       // upload active particle list to solver:
       rope.Solver.UpdateActiveParticles();
   }
}

Print this item

  Fluid made up of animated sprites?
Posted by: liero116 - 08-08-2017, 09:47 PM - Forum: Obi Fluid - Replies (1)

So I need a plugin to do something fairly specific.  I think Obi Fluid might be it but I want to make sure since I can't completely tell by looking at promotional material.

Basically I need to simulate fluid, but the fluid needs to be made up of animated sprites.  It seems like I can use a mesh which means I can use a plane and attach a simple animated texture to it, but I just want to make sure this is possible before I buy.

Print this item

  GC Alloc dropping FPS when rope gets bigger
Posted by: leonrdo - 08-08-2017, 08:56 PM - Forum: Obi Rope - Replies (3)

Hello guys, I have a situation here. I'm creating (extending) the rope at runtime. But from time to time, seems the GC is allocating memory and its causing the game to "lag" as the time to update the frame reaches up to 300ms. Follows the image of the profiler when the this happens. I'm not sure if theres a way to solve this problem, if its from the ObiSolver perspective or from Unity's GC perspective. Thanks in advance for some light in this issue.

[Image: zWmpQcb.png]

Print this item

  Independent Timescale
Posted by: momothemonster - 07-08-2017, 08:27 PM - Forum: Obi Rope - Replies (2)

Is there a way to make Obi Rope use an independent timescale? I'm slowing down Timescale in my game for a slow-motion effect but I want my rope to continue resolving at full-speed. Thanks!

Print this item

  complex mesh interaction
Posted by: baryy - 26-07-2017, 07:51 PM - Forum: Obi Fluid - Replies (2)

Hi I'm really hoping someone can advise on this notion. I wish to drive the simple fluid sim with a kinect driven avatar. Could anyone knowledgeable point me in a direction which might work? I understand that the classic colliders will not interact but is it possible to incorporate the mesh normals to react with the particles and repel around the kinect silhouette or via any other router?

Print this item

  Cloth collision is not working?
Posted by: nomura - 25-07-2017, 03:41 PM - Forum: Obi Cloth - Replies (1)

sorry i'm not good to english..

I read this document(http://obi.virtualmethodstudio.com/tutor...thing.html) and try.
Collision worked fine when I moved Unity chan as an animator.

but, If I change the rotation of each joint directly like below, the collision does not seem to work...

```
// Apply the processing below to each joint
Transform t = animator.GetBoneTransform(boneId);
t.localRotation = Quaternion.Slerp(t.localRotation,initialRotations[bone]*modifiedRotation, smoothFactor * Time.deltaTime);
```

Is there a way to enable cloth collision while rotating the relation directly?

Print this item

  Rope Pin Problem
Posted by: cond90 - 24-07-2017, 02:32 PM - Forum: Obi Rope - No Replies

Hello
I'm making an Android based 2D game.
In this project I use Bending, Tether, Distance, Pin constraints.

But I have some issue with Pin constraint position.
In the editor, Pin follow object well, but when i play with my android device, it seems not pinned(late). and In the 'Constraint enforce order' list, I order the pin constraint to the bottom.

I don't know what's wrong.

ps. what is the best setting for android device? (Itheration or solver or advection radius etc)

Thank you.

Print this item

  Adding a cape to a character
Posted by: GenPhiGames - 23-07-2017, 07:29 PM - Forum: Obi Cloth - Replies (4)

Hi,

What would be the best way to add a cape to a character and use collision so that the cape doesn't move through any part of the character? The cape is a separate mesh so it is not attached to the rigged character or animation. Do I have to do it the Unity way or is there a way to use the characters mesh?

Thank you!

Print this item

  Objects joined with ropes
Posted by: wifor - 20-07-2017, 02:14 PM - Forum: Obi Rope - Replies (2)

I have 4 objects placed in a row and joined together with rope, obi rope, using "Pin Constraints". All ropes are exactly the same but only one works correctly. That is, if I throw the two objects that are hooked to the running rope, drag the rest of objects, but if I throw the others the rope will stretch and never move the other objects. How can I do for all objects to be dragged away?

Print this item