Search Forums

(Advanced Search)

Latest Threads
Stretching verts uniforml...
Forum: Obi Softbody
Last Post: Aroosh
Yesterday, 05:32 AM
» Replies: 0
» Views: 66
Scripting rod forces
Forum: Obi Rope
Last Post: chenji
11-09-2025, 01:15 PM
» Replies: 25
» Views: 2,741
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 182
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 433
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 685
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 773
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 516
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 489
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 984
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 831

 
  Get position of particle at end of rope
Posted by: cfinger - 07-04-2021, 12:41 AM - Forum: Obi Rope - Replies (3)

Hello,

I would like to find the position of the particle at one end of a rope, no matter how much it has been resized at runtime. 

I have a rope with two control points and two particle attachments. The top attachment is static and the bottom is dynamic. I'm looking to reset an object to the end of the rope (on the dynamic attachment), and to do this I want to either move the rope to the object, or the object to the rope. They are both within close proximity of each other.

I tried to get the solver index of that particle using the rope's blueprint: 

Code:
int solverIndex = defaultRopeBlueprint.groups[1].particleIndices[0];
Vector3 worldPos = rope.GetParticlePosition(solverIndex);

This seemed to work, but if I change the length of the rope at runtime, I get a position that doesn't make sense. 

I also tried the solution from this thread, which needed a bit of updating. I'm not sure if I'm doing this correctly. I am getting a solver index of 0 for both the first and last particle. 

Code:
ObiConstraintsBatch batch = (ObiConstraintsBatch)rope.GetConstraintsByType(Oni.ConstraintType.Distance).GetBatch(0);
int lastParticle = batch.particleIndices[(batch.constraintCount - 1) * 2 + 1];
int firstParticle = batch.particleIndices[0];
Vector3 worldPos = rope.GetParticlePosition(firstParticle);
//or
Vector3 worldPos = rope.GetParticlePosition(lastParticle);

Thank you!

Print this item

  Question before buying about the length of the rope.
Posted by: iamlis - 07-04-2021, 12:32 AM - Forum: Obi Rope - Replies (1)

Hello.
I am looking for a fan implementation for Unity that will allow the following:
unwind the rope for a great length and go around many obstacles with it, and then unwind it, pulling the object at the end of the rope to its beginning.

In this regard, I would like to clarify in order to understand whether the Obi Rope implementation is suitable for me:
- how long can a rope be made without losing productivity?
- what are the benchmarks (from the performance evaluations on the site I could not understand this), how to pull, how long the rope in a meter of Unity can be created?
- if there are video clips with tests of the maximum length, I will also be grateful.

Thanks in advance for your reply.

Print this item

  Softbody generation of proceduraly generated objects?
Posted by: look001 - 06-04-2021, 03:50 PM - Forum: Obi Softbody - Replies (1)

Hey there,
is it possible to generate a softbody from a procedural generated mesh? I have a game where the player creates a mesh and then turns it in a softbody all at runtime. It's no problem if there is a lag of 10 seconds for generating the particles and skinning the mesh. Thank you for your attention.

Print this item

  Cloth behaviour after tear
Posted by: Gwynbleidd00 - 06-04-2021, 02:21 PM - Forum: Obi Cloth - Replies (5)

Hey there! 
I want to push cloth parts after tearing. Where should I look for this?
*I'm tearing by collider atm not by script.
Thanks!
https://imgur.com/YiSCddv

Print this item

  Manipulating Particles Individually
Posted by: ProudRoach - 05-04-2021, 11:28 PM - Forum: Obi Fluid - Replies (2)

I have read somewhere that these particles are indexed. I have had a hard time this last year in finding how to use this to my advantage. How would you grab each particle and then apply forces or velocities to them individually
OR
Is there a way to just use a collider as a trigger for all these particles without causing the game to lag?

I would like them to change direction based on the angle they enter an area and have each area apply different forces or velocities to the particles. The difficulty for me is that I need them to have a velocity while they are in this area instead of applying it once they enter and seeing those changes afterwards. Gran sonrisa

Print this item

  Soft body on characters other than default obi character
Posted by: bluemilan - 03-04-2021, 08:59 AM - Forum: Obi Softbody - Replies (1)

Hey guys
we have use ObiSoftBody version 5 and unity version 2020.1.2f1.
I have followed exact steps in obi tutorial.
problem is the default obi character work perfectly but my custom character does not.
does anybody has same problem?



Attached Files Thumbnail(s)
       
Print this item

  Change a softbody scale /make different solvers interact together?
Posted by: imbalex0 - 02-04-2021, 11:14 PM - Forum: Obi Softbody - Replies (2)

So basically, I'm making a multiplayer game where my players are softbody and they need to be able to change size mostly at will.  Since I need them to interact with each other, they are all in the same solver so I can't simply change the solver scale. (Unless there is somehow a way to make different solvers interact together and I didn't know about it, if so pls explain). I have a feeling that what I'm asking is impossible and I have some alternative solutions in case it is, but I have some hope. Thank for any help you can provide

Print this item

  Add Particles To Start, Remove From End
Posted by: darthmerth - 01-04-2021, 09:05 PM - Forum: Obi Rope - Replies (1)

Is it possible to add new particles to one end and remove from the other side at the same time? Like the rope is being sent from one side and received from the other ? 

I tried manipulating Cursor Mu and direction in many ways without success. Adding works perfectly, like in the Crane sample but removing "eats from one side" and only in one direction, even though I change the direction. I'm trying to make it look like someone is pulling and getting the rope from that end. Of course both ends are attached, so I'm using values like 0.02 or 0.98 instead of 0 and 1 in cursor mu.

Thanks in advance!

Print this item

  Rope not rendered in 2019.4.22
Posted by: Henning - 01-04-2021, 12:26 PM - Forum: Obi Rope - Replies (11)

Hi Obi team,  Sonrisa

For some compatibity issue I have to move to Unity before 2020 and when I imported Obi Rope 6.0.1 to 2019.4.22 the rope is not rendered correctly.

As shown in the attached image, the rope is only a line and once I click at some other objects, this line disappears.

Does it mean that 2019.4.22 is no longer supported or is there anything I can do to get it to work?

Many thanks in advance!



Attached Files Thumbnail(s)
   
Print this item

  ObiSoftbody not rendering in VR in certain camera angles
Posted by: mw2401 - 31-03-2021, 04:07 PM - Forum: Obi Cloth - Replies (1)

Hey, thank you for the great asset!

Currently I have a strange isue. The softbody sometimes doesnt render and disappears depending on the camera angle. I move the softbody with pinning it with ObiParticleAttachment to an grab interactable and depending on the position i move it, the softbody suddenly disappears.

I use URP
unity 2020.3.2 (also 2020.2.2 has the same problem)
Obi Softbody 6.0.1 (with Softbody 5. I have the same problem)
I use an Oculus Quest with an Oculus link cable

Do you have an idea on how to fix it?

Thank you

Markus

Print this item