Search Forums

(Advanced Search)

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

 
  Snake wrapping
Posted by: littleanchovy - 11-08-2022, 06:24 PM - Forum: Obi Rope - Replies (1)

Hey,!, i am using obi rope and i wanted to ask that. Currently i am using sneak scene and i want to wrap an object  with my snake and in scripts i want to know if a sneak is currently wrapping an object.I've checked forums and documentations but unfortunately i couldnt find answers.Do you know how can i achieve this ? Also checking if head of my snake is colliding with snake's body can work i think but i couldnt make it work.


https://prnt.sc/MUdpaFSHkwP3

Print this item

  Obi Rope Wave Effect
Posted by: NorkQ - 11-08-2022, 05:48 PM - Forum: Obi Rope - Replies (3)

Hi,
I am using a water pipe visual in my game. When the player touch the screen, a flow effect should play on pipe. It will not be a continuous flow. Just tapping will advance a single wave from start to finish. Can you help me for this visual ? 

Thanks.

[Image: o53r1h6.png]

Print this item

  Rod not following attachment correctly
Posted by: iamthehone - 10-08-2022, 05:12 PM - Forum: Obi Rope - Replies (1)

Hi there!

I have the same problem as someone here

http://obi.virtualmethodstudio.com/forum...attachment

on Obi 6.4, using Rod.

I've moved the accumulatedTime line to top of the Update, and the rod end still doesn't follow the rigidbody correctly. I've tried with and without interpolation enabled on both obi rod and the rigidbody.

Here is the gif

https://imgur.com/a/EwcaYFQ


Code:
private void Update()
{
accumulatedTime += Time.deltaTime;

ObiProfiler.EnableProfiler();
Interpolate(Time.fixedDeltaTime, accumulatedTime);
ObiProfiler.DisableProfiler();
}

Print this item

  Some questions & requests
Posted by: landosilva - 04-08-2022, 10:58 PM - Forum: Obi Rope - Replies (18)

Hi! I've bought Obi Rope some years ago but only now I'm getting my hands on it, and I’m having some issues. I will list them below.

  1. How to set rope start and end position?
    I’m spawning ropes at runtime and I felt like the documentation and tutorials are missing some examples on this.
    What I was trying to do is to link the rope in two dynamic objects that has physics. So the attachment works but the rope is misplaced. I can’t figure out how to set the initial position of the rope’s start and end reliably. Here's the code:

    public void Connect(Transform origin, Transform end)

        _attachment1.target = origin;
        _attachment2.target = end;
    }

    public void SetStartPosition(Vector3 position)
    {
        int firstParticle = _rope.elements[0].particle1;
        _rope.solver.positions[firstParticle] = position;
    }

    public void SetLastPosition(Vector3 position)
    {
        int lastParticle = _rope.elements[^1].particle2;
        _rope.solver.positions[lastParticle] = position;
    }

    So basically, I'm spawning a rope inside an existing Solver in the Scene, calling "SetStartPosition", "SetLastPosition" and "Connect" in sequence. It seems to work only right after spawning. If I need to change the link to some other object I can't set the position again it seems.

  2. Rope is too stretchy. How to handle that?
    I don’t want my rope to stretch too much when moving my objects. I saw in the docs that I can increase the amount of substeps in the fixed updater, or decrease Unity’s fixed timestep, but I don’t think I had good results. What am I missing?

  3. How to reset Rope to it’s rest position?
    When I assign the rope to a new position (and when it works, see 1.) it seems to come with the motion from its original position, starting with a lot of movement already, and I don’t want that. How to stop the rope’s forces and return it to the rest state?
    Tried this but didn't get good results:

    private void StopRope()
    {
        foreach (int solverIndex in _rope.solverIndices)
        {
            _rope.solver.velocities[solverIndex] = Vector4.zero;
            _rope.solver.externalForces[solverIndex] = Vector4.zero;
        }
    }

  4. Is it possible to make it influenced by Time.timeScale?
    My game is changing Time.timeScale sometimes, but it doesn’t seem to affect ropes. There is a workaround?

  5. ArgumentOutOfRange ObiRopeCursor.cs:169
    I get this error sometimes when changing ropes length at runtime.
I think that's it for now. Any help is much appreciated.
Thanks!

Print this item

  the rope is getting long
Posted by: busraasevimm - 04-08-2022, 03:56 PM - Forum: Obi Rope - Replies (1)

Hi,

As a result of the oscillating movements I make, the length of the rope gets longer and when it stops, it comes back to its original length. What should I do to keep its long constant? 

Thank you!

Print this item

  Collider Thickness set to 0, but liquid won't touch the walls
Posted by: Drengodr - 01-08-2022, 05:38 PM - Forum: Obi Fluid - Replies (1)

[Image: DkN8Nfd]
[Image: VXtaVW5]
(Not sure if inserting the images worked, so here are the links: https://imgur.com/VXtaVW5 https://imgur.com/HwNbGdf)
I have attached a picture in order to show what I mean. The drinking glass has a mesh collider and an obi collider, and the thickness is set to 0. Setting it negative makes the fluid fall right through the glass, and setting it higher causes the fluid to be pushed out of the glass or not enter it in the first place. It's possible the error has something to do with the collider settings, but I can't say for sure as I'm still fairly new to Obi Fluid. Any help would be much appreciated! Thanks!

Print this item

  Sand-like properties
Posted by: danik9 - 31-07-2022, 11:22 PM - Forum: Obi Fluid - Replies (4)

I want to simulate sand. Kind of stylized. Think on Gaara sand visuals or the sand-falls from Journey game.

I'm thinking for the effect I want I should not use a granular blueprint.

How should I set the properties of a fluid blueprint to achieve the closest feel and texture.

Is it possible to control the angle of repose of a fluid with obi?

Best regards.

Print this item

  Relocating rope/solver in scene breaks it
Posted by: dhymers - 30-07-2022, 09:18 PM - Forum: Obi Rope - Replies (5)

Hi All,

I've made a scene using 5 obi ropes and it works pretty well, I planned to make it a prefab or copy it to other scenes  to use throughout a unity game, but one of the solvers/ropes stops working even if I simply try and move it to a new location in the scene it was constructed in. I'd like to use this setup at least 5 or 6 times throughout a game and I'd love to not have to rebuild it every time. Is this a common bug ?

Thanks
Dave
   

Print this item

  Stop of rotation
Posted by: mrsloom23 - 30-07-2022, 03:48 AM - Forum: Obi Softbody - Replies (2)

Hello. Please forgive me for my English. I use Google translate.

I would like to smoothly stop the rotation of my soft body. I read the documentation and looked at the examples, but I didn't find a suitable solution. I tried to solve the problem using an array of starting positions of particles. When the button was pressed, I tried to set each particle a speed in the starting direction. Alas. It didn't work out for me. 

My body must constantly fall, hitting other objects. I would like to stop its rotation by pressing a key. Tell me, is it possible? Thank you in advance,
josemendez.

Print this item

  Can a Softbody object collide with a Fluid?
Posted by: asama - 29-07-2022, 11:35 PM - Forum: Obi Softbody - Replies (1)

I was trying to have an Obi Softbody object collide with an Obi Fluid, is that possible? Thank you.

Print this item