Latest Threads |
Problems deleting obi col...
Forum: Obi Rope
Last Post: btduser
3 hours ago
» Replies: 2
» Views: 34
|
Frequent crash after assi...
Forum: Obi Fluid
Last Post: spikebor
Yesterday, 09:59 AM
» Replies: 4
» Views: 144
|
Softbody for head Model s...
Forum: Obi Softbody
Last Post: josemendez
11-05-2024, 07:52 AM
» Replies: 1
» Views: 25
|
Bigger foam with Alpha di...
Forum: Obi Fluid
Last Post: spikebor
10-05-2024, 08:57 AM
» Replies: 12
» Views: 402
|
Changing the rope's posit...
Forum: Obi Rope
Last Post: Crystalius
09-05-2024, 08:54 AM
» Replies: 3
» Views: 103
|
RESET Obi Softbody
Forum: Obi Softbody
Last Post: spikebor
09-05-2024, 06:12 AM
» Replies: 11
» Views: 2,872
|
Obi7 | Fluid granular can...
Forum: Obi Fluid
Last Post: spikebor
08-05-2024, 06:17 PM
» Replies: 0
» Views: 63
|
Can ObiBone work with Sof...
Forum: Obi Softbody
Last Post: spikebor
08-05-2024, 03:36 PM
» Replies: 0
» Views: 42
|
(7.0) Still confused abou...
Forum: General
Last Post: kodra
07-05-2024, 03:13 PM
» Replies: 4
» Views: 170
|
Question of the ObiRope l...
Forum: Obi Rope
Last Post: rinrin
07-05-2024, 02:33 PM
» Replies: 0
» Views: 116
|
|
|
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!
|
|
|
Objects joined with ropes |
Posted by: wifor - 20-07-2017, 02:14 PM - Forum: Obi Rope
- Replies (2)
|
|
I have 4 objects placed in a row and joined together with rope, obi rope, using "Pin Constraints". All ropes are exactly the same but only one works correctly. That is, if I throw the two objects that are hooked to the running rope, drag the rest of objects, but if I throw the others the rope will stretch and never move the other objects. How can I do for all objects to be dragged away?
|
|
|
|