Search Forums

(Advanced Search)

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

 
  Obi Collider
Posted by: Laura - 28-03-2019, 06:02 PM - Forum: Obi Rope - Replies (2)

Hello,

I have in one scene a gameobject with an obi rope. That object has a hole in the center and I grab it with the motion controller.

The idea is the rope goes through the hole and slips through it. But when I move the rope goes through the object and is released.

The object has an obi collider component and the particles of the rope are together and there are no gaps. The phase of the rope and the object are different. 
I attach you an image:

   

What should I do to keep the rope inside the hole and not get out?


I hope you can help me.

Thank you.

Laura.

Print this item

  ObiFluidPropertyColorizer
Posted by: mimarilker - 27-03-2019, 11:17 AM - Forum: Obi Fluid - Replies (3)

Hi,

I am trying to use ObiFluidPropertyColorizer which is a sample script that colors fluid particles based on their vorticity (2D only). However, vorticity returns always zero. Actually, it's not. I think there's a problem with taking data correctly;

float v = emitter.Solver.userData[emitter.particleIndices[i]][0];

What does zero here (emitter.particleIndices[i]][0]) mean? Does the zero channel give vorticity? I have tried to change it to different values, but get no data. Actually, I am trying to get particles colored according to (density-restDensity)/1000.0f). Is this possible?

Print this item

  Interested in fluid to fluid collision
Posted by: itsallgoodgames - 27-03-2019, 10:27 AM - Forum: Obi Fluid - Replies (1)

Are there any fluid to fluid collision demos in the plugin?

I'm interested in 2 unrelated ideas.

Lava fluid collide with water fluid to to destroy both particles and instantiate a gas fluid.
Collide "red" fluid with "blue" fluid  particles to create "purple" fluid particles.

I assume you cannot modify properties of an existing fluid so you'd have to instantiate particles of a the third fluid.

Print this item

  soft body character controller with rigid body
Posted by: rubberkidney - 26-03-2019, 11:06 PM - Forum: Obi Softbody - Replies (3)

Hello, im trying to make a character controller for an object that is a soft body.  ive been looking at the sample character in the examples but i cant seem to get my character to move.  it seems that there is just a velocity being set in the character controller but when I try to mirror this i get no response.  If i try to manipulate the transform without a rigidbody it kind of works but then breaks down.  is there some trick to getting obi to play nicely with rigidbody?  thanks!

Print this item

  {SOLVED} Obi Rope goes crazy when time scale goes from 0 to 1?
Posted by: fletcherkildren - 26-03-2019, 08:36 PM - Forum: Obi Rope - No Replies

Howdy all,

I'm using scale time to 'pause' my game - so when I hit Esc the time scale goes from 1 to 0, when I hit escape again, it goes from 0 to 1.

When I do that, my Obi Rope swings wildly and stretches all over, as if it was a rubber band in a hurricane.

You can see what happens here:

https://media.giphy.com/media/iO7H5hyyEz.../giphy.gif

Any thoughts how to prevent this?

Thanks!

edit: found that I was also adjusting delta time, once I stopped doing that, the rope acts normally

Print this item

Pregunta Mass and Center of Mass? Missing API?
Posted by: StudioTatsu - 25-03-2019, 10:09 PM - Forum: Obi Softbody - Replies (2)

Has the API Docs been updated for softbody? I may be overlooking it or using an outdated link.

Before I write my own methods, I have a few questions:

I'm replacing my rigidbody with a softbody. Do these methods/fields or something equivalent exist for softbodies.

  1. Rigidbody.GetPointVelocity(Vector3 worldPoint) - returns the pointVelocity .
  2. Rigidbody.AddForceAtPosition(Vector3 force, Vector3 position)
  3. Rigibody.centerOfMass - get and set the center of mass of softbody.
  4. Rigibody.mass - [i]get and set the total mass of softbody.[/i]
  5. Rigibody.velocity - gets the softbody velocity 
I have been working on alternative approaches just in case the above methods/fields don't exist. so far...
for setting mass: I was going to divide the total mass with the particle count and add that value to each particle.
for getting velocity: since each particle has a velocity, I was going to use the first particle as the velocity.
 but does a single particle velocity represent the velocity of the entire softbody? Not sure this will work.


And Lastly - Since you have to initialize a softbody in the editor, It's not possible to create a softbody at runtime, right?

I'm in the dark and guessing without the softbody API documentation (using the source helps, but creates more questions).

 Any help would be greatly appreciated.

Thanks.

Print this item

  Particle color in simpleFluidRenderer
Posted by: anonymous - 25-03-2019, 10:54 AM - Forum: Obi Fluid - Replies (2)

Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.



.png   colorAsked.png (Size: 28.63 KB / Downloads: 27)

.png   colorObtained.png (Size: 7.02 KB / Downloads: 27)

Print this item

  See lenght of rope
Posted by: LaurensVR - 24-03-2019, 03:06 PM - Forum: Obi Rope - Replies (2)

Hi i just bought obi rope 4 and i am experimenting it to see if i could use it for a certain gameplay idea but for this i wanted to see if it's possible ti measure the rope distance?

Print this item

  Obi rope renderer
Posted by: SamViolin - 24-03-2019, 05:48 AM - Forum: Obi Rope - Replies (2)

Hello, I encountered a problem with "obi rope". In my scene 38 wires. It gives out very little FPS. I reduced the resolution of "obi rope" and received a gain, but the problem is that there must be more than 100 wires in the scene. Are there any ways to optimize the rendering of ropes? P.S. If I reduce all parameters of "obi solver" to 1 improvement there is no noticeable performance improvement.
Is there any analogue of Rigidbody.IsSleeping in obiRope? Is it possible to find out that the obiRope is sleeping?



[Image: image.png]

Obi solver
[Image: image.png]

Rope
[Image: image.png]


Thank You


Sam Violin.

Print this item

  When use softbody. my skinned mesh messed up
Posted by: songsongsong - 23-03-2019, 04:04 PM - Forum: Obi Softbody - Replies (2)

if no softbody used ,then everything is fine.
if attach the softbody,then mesh messed up.


without softbody
[attachment=300]


with softbody
[attachment=301]

the shoulder and chest are messed up

Print this item