Latest Threads |
Stretching verts uniforml...
Forum: Obi Softbody
Last Post: Aroosh
Yesterday, 05:32 AM
» Replies: 0
» Views: 76
|
Scripting rod forces
Forum: Obi Rope
Last Post: chenji
11-09-2025, 01:15 PM
» Replies: 25
» Views: 2,785
|
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 194
|
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 446
|
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 696
|
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 785
|
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 523
|
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 496
|
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 994
|
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 841
|
|
|
About Moving? |
Posted by: zero16832 - 27-02-2021, 09:15 AM - Forum: Obi Softbody
- Replies (34)
|
 |
According to the example you provided, I wrote a demo that uses the mouse to move. At first, the demo is normal, but the later movement slowly turns into the opposite direction. Why?
if (Input.GetMouseButton(0))
{
direction += moveDirection* moveSpeed;
softbody.AddForce(direction.normalized * moveSpeed, ForceMode.Acceleration);
}
|
|
|
Missing Ref Exception when deleting Obi Cloth |
Posted by: fluidman84 - 26-02-2021, 09:45 PM - Forum: Obi Cloth
- Replies (5)
|
 |
I've encountered this error when I attempt to Destroy() a obi cloth object in the scene that has been instantiated and then create a new obi cloth object in its place. This issue does not occur if I Destroy the object first then instantiate a new one afterward in a separate method, but I cannot perform the Destruction in the same method without receiving this error for the missing ObiSkinnedClothBlueprint. Is there a way I can disable this one the obi cloth to be destroyed to prevent this error?
Code: MissingReferenceException: The object of type 'ObiSkinnedClothBlueprint' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.Instantiate[T] (T original) (at <fe84f4a754da4a6bb64fca409d40938a>:0)
Obi.ObiActor.StoreState () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:1028)
Obi.ObiActor.UnloadBlueprint (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:1071)
Obi.ObiClothBase.UnloadBlueprint (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Cloth/Actors/ObiClothBase.cs:179)
Obi.ObiSolver.RemoveActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1114)
Obi.ObiActor.RemoveFromSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:326)
Obi.ObiActor.OnDisable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:292)
Obi.ObiSkinnedCloth.OnDisable () (at Assets/Obi/Scripts/Cloth/Actors/ObiSkinnedCloth.cs:123)
UnityEngine.Object:DestroyImmediate(Object, Boolean)
OutfitChanger_Fem:DeleteClothingItem() (at Assets/Scripts/OutfitChanger_Fem.cs:181)
OutfitChanger_Fem:LoadOutfitBundlePrefab(String) (at Assets/Scripts/OutfitChanger_Fem.cs:172)
UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2020.1.15f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:376)
|
|
|
Segregation of instructions to each rope at the time of collision |
Posted by: NakanHogeri - 26-02-2021, 12:51 PM - Forum: Obi Rope
- Replies (4)
|
 |
I'm currently trying to change the color of two Obi Rope in the same Solver at their own timing when they collide with other objects.
I pasted the script below on each rope and tried it, and when one rope collided with another object, the color of the other rope was the same.
Code: private void Solver_OnCollision(ObiSolver solver, ObiSolver.ObiCollisionEventArgs e)
{
foreach (Oni.Contact contact in e.contacts)
{
if (contact.distance < 0.025f)
{
ChangeColorDark();
}
}
}
Obi version 6.0, Surface-based collisions are enabled on each rope.
If I had two Obi Solvers in the scene and one rope as a child object of one Solver, the current script would work, but it would be very costly.
I would be very grateful if you could let me know if you have an elegant solution.
Thanks.
|
|
|
About SoftBody Moveing |
Posted by: zero16832 - 25-02-2021, 09:56 AM - Forum: Obi Softbody
- Replies (5)
|
 |
Thanks you to make this great plugins!
I make a mesh to softbody and use addforce to move the gameobject,it work.
But i want to only rotate or move to one axis,how can i to do that?
how can i to freeze position or freeze rotation?
thank your help!
|
|
|
Caution tape? |
Posted by: iandaviddunlop - 24-02-2021, 06:01 PM - Forum: Obi Rope
- Replies (1)
|
 |
Can I render a custom repeating texture across a "rope"? The texture would say something like "CAUTION DO NOT CROSS". The back and front sides would need to be different portions of the same texture (probably an offset).
Thanks.
|
|
|
|