Latest Threads |
Rod loses initial shape w...
Forum: Obi Rope
Last Post: Qriva0
Yesterday, 01:02 PM
» Replies: 4
» Views: 127
|
Fluid oddities at <= 4 pa...
Forum: Obi Fluid
Last Post: josemendez
Yesterday, 11:26 AM
» Replies: 1
» Views: 47
|
Rod dynamic attachment is...
Forum: Obi Rope
Last Post: matty337s
12-08-2025, 10:44 AM
» Replies: 10
» Views: 360
|
7.1 Obi bone spasm
Forum: Obi Rope
Last Post: chenji
12-08-2025, 02:41 AM
» Replies: 3
» Views: 182
|
Scripting rod forces
Forum: Obi Rope
Last Post: Qriva0
11-08-2025, 03:24 PM
» Replies: 7
» Views: 312
|
Pinhole inspector throw e...
Forum: Obi Rope
Last Post: josemendez
11-08-2025, 10:45 AM
» Replies: 5
» Views: 220
|
Adding ObiColider To Gene...
Forum: Obi Rope
Last Post: aderae
08-08-2025, 01:17 PM
» Replies: 4
» Views: 232
|
Rod attachment orientatio...
Forum: Obi Rope
Last Post: chenji
06-08-2025, 10:56 AM
» Replies: 3
» Views: 291
|
Change rod section at run...
Forum: Obi Rope
Last Post: chenji
06-08-2025, 10:43 AM
» Replies: 1
» Views: 177
|
Rope going through wall
Forum: Obi Rope
Last Post: josemendez
04-08-2025, 01:02 PM
» Replies: 5
» Views: 341
|
|
|
Figure out what Actor was collided with |
Posted by: niZmo - 09-08-2017, 12:40 AM - Forum: Obi Rope
- Replies (4)
|
 |
I am going to be cutting ropes, with multiple ropes on one solver. I have a knife which tears the rope at the particle index collided with. The only problem is I don't know how to get which rope is being collided with to cut the right one. I've looked through the classes and couldn't find anything. Right now I have a public field to apply the tear to a rope. Here is the code, which is applied to the knife object.
Code: using UnityEngine;
using Obi;
public class RopeCutter : MonoBehaviour
{
public ObiSolver solver;
public ObiRope rope;
void OnEnable()
{
solver.OnCollision += Solver_OnCollision;
}
void OnDisable()
{
solver.OnCollision -= Solver_OnCollision;
}
void Solver_OnCollision(object sender, Obi.ObiSolver.ObiCollisionEventArgs e)
{
if (solver.colliderGroup == null) return;
foreach (Oni.Contact c in e.contacts)
{
// make sure this is an actual contact:
if (c.distance < 0.01f)
{
// get the collider:
//Collider collider = solver.colliderGroup.colliders[c.other];
// Cut at particle index
CutRopeAtIndex(rope, c.particle);
}
}
}
void CutRopeAtIndex(ObiRope rope, int index)
{
// remove constraints from solver:
rope.DistanceConstraints.RemoveFromSolver(null);
rope.BendingConstraints.RemoveFromSolver(null);
rope.Tear(index); // tear the fifth distance constraint.
// you could call Tear() as many times as you wish here.
// add constraints to solver
rope.BendingConstraints.AddToSolver(rope);
rope.DistanceConstraints.AddToSolver(rope);
// update active bending constraints:
rope.BendingConstraints.SetActiveConstraints();
// only for cloth: commit changes to the topology:
// UpdateDeformableTriangles();
// upload active particle list to solver:
rope.Solver.UpdateActiveParticles();
}
}
|
|
|
Fluid made up of animated sprites? |
Posted by: liero116 - 08-08-2017, 09:47 PM - Forum: Obi Fluid
- Replies (1)
|
 |
So I need a plugin to do something fairly specific. I think Obi Fluid might be it but I want to make sure since I can't completely tell by looking at promotional material.
Basically I need to simulate fluid, but the fluid needs to be made up of animated sprites. It seems like I can use a mesh which means I can use a plane and attach a simple animated texture to it, but I just want to make sure this is possible before I buy.
|
|
|
Independent Timescale |
Posted by: momothemonster - 07-08-2017, 08:27 PM - Forum: Obi Rope
- Replies (2)
|
 |
Is there a way to make Obi Rope use an independent timescale? I'm slowing down Timescale in my game for a slow-motion effect but I want my rope to continue resolving at full-speed. Thanks!
|
|
|
complex mesh interaction |
Posted by: baryy - 26-07-2017, 07:51 PM - Forum: Obi Fluid
- Replies (2)
|
 |
Hi I'm really hoping someone can advise on this notion. I wish to drive the simple fluid sim with a kinect driven avatar. Could anyone knowledgeable point me in a direction which might work? I understand that the classic colliders will not interact but is it possible to incorporate the mesh normals to react with the particles and repel around the kinect silhouette or via any other router?
|
|
|
Cloth collision is not working? |
Posted by: nomura - 25-07-2017, 03:41 PM - Forum: Obi Cloth
- Replies (1)
|
 |
sorry i'm not good to english..
I read this document(http://obi.virtualmethodstudio.com/tutor...thing.html) and try.
Collision worked fine when I moved Unity chan as an animator.
but, If I change the rotation of each joint directly like below, the collision does not seem to work...
```
// Apply the processing below to each joint
Transform t = animator.GetBoneTransform(boneId);
t.localRotation = Quaternion.Slerp(t.localRotation,initialRotations[bone]*modifiedRotation, smoothFactor * Time.deltaTime);
```
Is there a way to enable cloth collision while rotating the relation directly?
|
|
|
Rope Pin Problem |
Posted by: cond90 - 24-07-2017, 02:32 PM - Forum: Obi Rope
- No Replies
|
 |
Hello
I'm making an Android based 2D game.
In this project I use Bending, Tether, Distance, Pin constraints.
But I have some issue with Pin constraint position.
In the editor, Pin follow object well, but when i play with my android device, it seems not pinned(late). and In the 'Constraint enforce order' list, I order the pin constraint to the bottom.
I don't know what's wrong.
ps. what is the best setting for android device? (Itheration or solver or advection radius etc)
Thank you.
|
|
|
Adding a cape to a character |
Posted by: GenPhiGames - 23-07-2017, 07:29 PM - Forum: Obi Cloth
- Replies (4)
|
 |
Hi,
What would be the best way to add a cape to a character and use collision so that the cape doesn't move through any part of the character? The cape is a separate mesh so it is not attached to the rigged character or animation. Do I have to do it the Unity way or is there a way to use the characters mesh?
Thank you!
|
|
|
|