Latest Threads |
Fluid ignores colliders o...
Forum: Obi Fluid
Last Post: josemendez
Today, 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: 100
|
Dynamic attachment to fix...
Forum: Obi Rope
Last Post: josemendez
12-02-2025, 02:52 PM
» Replies: 9
» Views: 338
|
Changing rope lenth creat...
Forum: Obi Rope
Last Post: josemendez
11-02-2025, 08:35 PM
» Replies: 3
» Views: 179
|
Preventing fabric from vi...
Forum: Obi Cloth
Last Post: josemendez
10-02-2025, 12:36 PM
» Replies: 1
» Views: 125
|
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,499
|
Collider interactions
Forum: Obi Softbody
Last Post: josemendez
07-02-2025, 09:42 AM
» Replies: 1
» Views: 158
|
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
|
|
|
OBI Fluid and transparent objects in URP |
Posted by: EmreO - 03-03-2021, 06:24 AM - Forum: Obi Fluid
- Replies (5)
|
 |
Hi.
I need some help with rendering OBI Fluid and other objects with transparent shaders in URP. I tried different blending options in OBI Fluid renderer, also tried custom transparent shaders with high render queue values for my transparent objects, but it keeps rendering OBI Fluid always after (and over) other transparent objects.
|
|
|
Linking the positions of actors and other objects |
Posted by: NakanHogeri - 28-02-2021, 02:00 PM - Forum: Obi Rope
- Replies (2)
|
 |
Currently, I'm trying to place an empty object in each of the two Obi Rope's approximate centers in the same solver.
Hierarchy is as follows.
Code: □Obi Solver
-rope1
-rope2
□pointObject1
□pointObject2
The following script is pasted on each rope.
Code: ObiActor actor;
public GameObject pointObject;
int ropeCenterIndex;
void Awake()
{
actor = this.gameObject.GetComponent<ObiActor>();
ropeCenterIndex = actor.solverIndices.Length / 2;
}
void Update()
{
var position = actor.solver.positions[ropeCenterIndex];
pointObject.transform.position = new Vector3(position.x,
position.y,
position.z);
}
For the "public GameObject pointObject" part, I manually put pointObject1 in rope1 and pointObject2 in rope2 from the Inspector.
When this is done, the center of rope2 and pointObject1 will move in tandem, and pointObject2 will not move from its original position, which is a strange state.
How can I get each pointObject to work with the center of each rope?
Sorry for always a beginner question.
Thank you.
|
|
|
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);
}
|
|
|
|