Latest Threads |
Fluid ignores colliders o...
Forum: Obi Fluid
Last Post: josemendez
Yesterday, 09:03 AM
» Replies: 2
» Views: 38
|
Particle attachments dont...
Forum: Obi Rope
Last Post: josemendez
13-02-2025, 03:09 PM
» Replies: 1
» Views: 102
|
Dynamic attachment to fix...
Forum: Obi Rope
Last Post: josemendez
12-02-2025, 02:52 PM
» Replies: 9
» Views: 339
|
Changing rope lenth creat...
Forum: Obi Rope
Last Post: josemendez
11-02-2025, 08:35 PM
» Replies: 3
» Views: 180
|
Preventing fabric from vi...
Forum: Obi Cloth
Last Post: josemendez
10-02-2025, 12:36 PM
» Replies: 1
» Views: 128
|
Trouble with Attachments
Forum: Obi Softbody
Last Post: beegon
07-02-2025, 08:29 PM
» Replies: 3
» Views: 229
|
Mesh creating
Forum: Obi Rope
Last Post: alicecatalano
07-02-2025, 11:28 AM
» Replies: 13
» Views: 22,503
|
Collider interactions
Forum: Obi Softbody
Last Post: josemendez
07-02-2025, 09:42 AM
» Replies: 1
» Views: 159
|
RuntimeRopeGenerator basi...
Forum: Obi Rope
Last Post: ayoci
04-02-2025, 04:30 PM
» Replies: 0
» Views: 1,545
|
static 2nd attachment cau...
Forum: Obi Rope
Last Post: josemendez
04-02-2025, 07:53 AM
» Replies: 1
» Views: 197
|
|
|
Attaching a prefab to each particle in a rope. |
Posted by: hecali_aj - 05-03-2021, 11:29 AM - Forum: Obi Rope
- Replies (2)
|
![](https://obi.virtualmethodstudio.com/forum/images/default_avatar.png) |
Hello,
Is there a way to attach a gameobject/prefab to rope particles? I was thinking of creating the rope through script and attaching a prefab to each particle in the rope.
Is there a better way to do this? Is using pin constraints the solution to this one?
|
|
|
IndexOutOfRange in ClothProxy on Android |
Posted by: JanikH - 04-03-2021, 03:53 PM - Forum: Obi Cloth
- Replies (3)
|
![](https://obi.virtualmethodstudio.com/forum/images/default_avatar.png) |
Hi,
when running our game on Android we're currently running into the following exception:
Code: IndexOutOfRangeException: Index was outside the bounds of the array.
at Obi.ObiClothProxy.UpdateSkinning (Obi.ObiActor actor) [0x002ab] in ...\Assets\Obi\Scripts\Cloth\Rendering\ObiClothProxy.cs:132
at Obi.ObiClothRendererBase.UpdateRenderer (Obi.ObiActor actor) [0x0012b] in ...\Assets\Obi\Scripts\Cloth\Rendering\ObiClothRendererBase.cs:191
at Obi.ObiActor.Interpolate () [0x0010d] in ...\Assets\Obi\Scripts\Common\Actors\ObiActor.cs:1189
at Obi.ObiSolver.Interpolate (System.Single stepTime, System.Single unsimulatedTime) [0x000a7] in ...\Assets\Obi\Scripts\Common\Solver\ObiSolver.cs:1622
at Obi.ObiUpdater.Interpolate (System.Single stepDeltaTime, System.Single accumulatedTime) [0x0002f] in ...\Assets\Obi\Scripts\Common\Updaters\ObiUpdater.cs:110
at Obi.ObiFixedUpdater.Update () [0x00007] in ...\Assets\Obi\Scripts\Common\Updaters\ObiFixedUpdater.cs:62
This does not occur when running in the editor.
We're using ObiCloth 6.0.1 with Unity 2020.2.4f1.
I made sure to regenerate the blueprint and rebind the skin map.
Any pointers as to what the issue may be?
|
|
|
Adding & Removing ObiParticleAttachments at runtime |
Posted by: MartinBischoff - 04-03-2021, 03:20 PM - Forum: General
- Replies (1)
|
![](https://obi.virtualmethodstudio.com/forum/images/default_avatar.png) |
I want to dynamically add and remove ObiParticleAttachments to individual particles of Softbodies at runtime.
My current implemenation looks like this:
Code: private void Grasp(ObiActor actor, int index)
{
attachment = actor.gameObject.AddComponent<ObiParticleAttachment>();
attachment.target = transform;
attachment.particleGroup = actor.blueprint.AppendNewParticleGroup(groupName);
groupIndex = actor.blueprint.groups.Count;
attachment.particleGroup.particleIndices = new List<int> { index };
attachment.compliance = 0;
attachment.attachmentType = ObiParticleAttachment.AttachmentType.Dynamic;
IsGrasping = true;
solver.RemoveActor(actor);
solver.AddActor(actor);
}
private void Release()
{
Destroy(attachment);
actor.blueprint.RemoveParticleGroupAt(groupIndex);
solver.RemoveActor(actor);
solver.AddActor(actor);
}
I can succesfully preform Grasp() and Release() once. The second time I call Grasp() the actor moves only halfway to the attachments target. It seems like the solver did not fully forget the previous attachments.
I experimented several hours with the methods suggested in Scripting Constraints tutorial without success.
I don't want to add forces to particles in this script as it is done in ObiParticleDragger but rather activate & deactivate a pin/attachment constraint.
Thank you so much for your support!
tl/dr:
How do I properly register and unregister ObiParticleAttachments at runtime?
|
|
|
Merging Cloth and Softbody Obi error |
Posted by: fluidman84 - 03-03-2021, 07:43 PM - Forum: Obi Softbody
- Replies (2)
|
![](https://obi.virtualmethodstudio.com/forum/images/default_avatar.png) |
I am attempting to introduce the ObiSoftbody components into a project that contains Obi Cloth. I've updated both packages to the current (6.0.1) versions, but for some reason still receiving an error.
Code: Assets\Obi\Scripts\Softbody\Actors\ObiSoftbody.cs(27,30): error CS0115: 'ObiSoftbody.surfaceCollisions': no suitable method found to override
I've updated the ObiActor script in Obi\Scripts\Common\Actors as I thought that contains surfaceCollisions, but I still receive the error. Any suggestions?
|
|
|
|