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,720
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 181
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 428
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 681
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 768
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 513
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 488
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 979
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 829

 
  In which space are external forces applied ?
Posted by: lufydad - 25-02-2022, 02:15 PM - Forum: Obi Rope - Replies (2)

Hi,

I'm adding some external forces to particles based on documentation http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html.
But, it's not specified in which space the forces are applied. I supposed based on the other variables, that it's applied in local space of the solver, could you confirm (or not) this information ?

Print this item

  Define Particle Position without inertia
Posted by: promero - 24-02-2022, 10:35 PM - Forum: Obi Softbody - Replies (3)

I try to generate a save and load function for softbody object.
For that, I save on json file all particle positions.

When I load it, I define the position of each particle with velocity to zero.
I know that to keep positions I must define invMasses to zero.

If I do it works, because softbody particles are fixed.

My problem is that I don't want to fix the particles, particles must move depending ObiParticleAttachment.

What I need is to open the softbody on same position that I save before, and particles must be without movement, until I interact with ObiParticleAttachment elements.

In theory if velocity is zero, particles must keep positions but my softbody particles move a lot until loose inertial energy.

Any advice or help is appreciated.

Thanks

Print this item

  Weird direction in 2D Mode
Posted by: hergen - 24-02-2022, 04:37 PM - Forum: Obi Softbody - Replies (3)

Hello,

I am trying to build a game in unity using your softbody asset in 2D Mode.

I want a circular softbody, so I created a mesh for that and created a blueprint (settings in screenshots).
However, when I set everything up and start the game, the softbody circle turns inside out and acts normally afterwards.

How can I fix this?

Thank you in advance.

settings:
[Image: zmVqs1X]

the effect:
[Image: lfeuI8R]

Print this item

  [BUG] Exception when trying to generate blueprint with surface vertices
Posted by: JanikH - 24-02-2022, 03:49 PM - Forum: Obi Softbody - Replies (3)

Hi,

I just updated to Obi Softbody 6.4 and I'm trying to generate a new blueprint with the "Vertices" mode for surface sampling.
I did a clean package import and regardless of which mesh I select, the following exception always occurs:

Quote:IndexOutOfRangeException: Index was outside the bounds of the array.
Obi.ObiSoftbodySurfaceBlueprint+<SurfaceMeshShapeMatchingConstraints>d__53.MoveNext () (at Assets/Obi/Scripts/Softbody/Blueprints/ObiSoftbodySurfaceBlueprint.cs:620)
Obi.ObiSoftbodySurfaceBlueprint+<Initialize>d__38.MoveNext () (at Assets/Obi/Scripts/Softbody/Blueprints/ObiSoftbodySurfaceBlueprint.cs:181)
Obi.ObiActorBlueprint+<Generate>d__59.MoveNext () (at Assets/Obi/Scripts/Common/Blueprints/ObiActorBlueprint.cs:282)
Obi.CoroutineJob+<Start>d__15.MoveNext () (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:99)
UnityEngine.Debug:LogException(Exception)
Obi.<Start>d__15:MoveNext() (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:108)
Obi.EditorCoroutine:ShowCoroutineProgressBar(String, IEnumerator&) (at Assets/Obi/Scripts/Common/Utils/Coroutines/EditorCoroutine.cs:21)
Obi.ObiActorBlueprintEditor:Generate() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:131)
Obi.ObiActorBlueprintEditor:OnInspectorGUI() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:163)
UnityEngine.GUIUtilityLenguarocessEvent(Int32, IntPtr, Boolean&)

I'm on Unity 2020.3.28f1.
Let me know if I can help by providing further information.

Print this item

Exclamación Maybe friction bug
Posted by: Zombie1995 - 24-02-2022, 12:31 PM - Forum: Obi Softbody - Replies (1)

When adding force to soft body object along the frictional floor, after few seconds stopping it and then adding vertical force i can notice that soft body is moving the opposite direction when we were giving first force. I can give you apk if you want.

Print this item

  Cloth abnormally twists in the CharacterCloth sample
Posted by: JunYu - 23-02-2022, 06:58 PM - Forum: Obi Cloth - Replies (5)

Hello!
I created a new Unity project and imported Obi Cloth. The CharacterCloth sample and the Trampoline sample have the strange problem as the below pictures show. Other samples are all normal. 
[Image: 7c5d7b9c382e6a2a.png]
[Image: 1586b43809408caa.png]
I tested two backends, they are the same.
I tested it in 4 Unity versions.
In Unity 2021.2.7f1c1, 2021.2.0b12.3482 and 2022.1.0b8.2747, the same issue occurs.
Luckily, in Unity 2020.3.29f1c1(LTS), this issue doesn't occur.
I tested on two PCs, the results are the same, maybe it's because the two PCs have the same CPU.
I can use Unity 2020 to continue my work, but it would be better to find out why the issue occurs.
I don't know if it is necessary to attach the project file, because it is just an empty project.
My system: Windows 10.0.19043  x64
CPU: Intel Core i5-4200H  two cores four threadings
I'm sorry that my English is not good. Indeciso
Thank you in advance!

Print this item

  Weird behavior when changing resolution
Posted by: lufydad - 23-02-2022, 03:39 PM - Forum: Obi Rope - Replies (2)

Hi,

I have a rope attached to two cubes and I tried to changed the resolution of the blueprint from 0.05 to 1. I expected that the behavior of the ropes will be just more fluid and accurate, but as shown in this gif, it looks like we just increase the stretching scale and other physical parameters.
Is this the excepted behavior ? In this case, why does the density of particles have this impact on the rope ?

Thank you for your time,

Print this item

  ReattachingParticle
Posted by: alex798 - 21-02-2022, 04:08 PM - Forum: Obi Rope - Replies (19)

Good day,

Sometimes my particle, which attached to object shifts from said objects and tries to stay on this shifted position from object due to attachment.

I tried to return it on previous position using ObiRope.TeleportParticle if it shifts, but attachment seems to save this shift somewhere and returns particle back...

How to reset Attachment after teleport?

Now made Attachments Bind Function public and rebind attachment- seems to work, but now I need to set said particle right Orientation- how to do it? And is my Bind workaround legid or not?

Print this item

  Tension
Posted by: Kizzualx - 19-02-2022, 02:00 PM - Forum: Obi Rope - Replies (3)

Hello. Please tell me.

I have 2 ropes and they are hooked to different hooks. At one of them I reduce the length, thereby the ropes are stretched.
But I need to figure out when the tension is so big that there is a hole between the ring and the rope, I need to make a break.


before tension:
   

After. At this point, you need to take some action:
   

I can't determine when the tension is so strong that a hole appears.

As an option, take the distance between the junction and the end of the rope, but I do not know how to take the coordinates of the end of the rope


Print this item

  FluidRenderer not showing in build for Oculus Rift
Posted by: JskT01 - 18-02-2022, 08:56 PM - Forum: Obi Fluid - Replies (2)

Hi I'm doing the build for Oculus Rift but it doesn't render in the build, I can only see the fluid in the editor.

I have no errors in the construction, the project works, only the fluid is not rendered in VR or on computer.

Print this item