Latest Threads |
Stretching verts uniforml...
Forum: Obi Softbody
Last Post: Aroosh
Yesterday, 05:32 AM
» Replies: 0
» Views: 66
|
Scripting rod forces
Forum: Obi Rope
Last Post: chenji
11-09-2025, 01:15 PM
» Replies: 25
» Views: 2,726
|
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 182
|
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 431
|
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 684
|
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 773
|
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 516
|
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 488
|
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 982
|
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 830
|
|
|
Runtime Adding/Changing Control Points |
Posted by: Aolifu - 26-07-2021, 04:21 AM - Forum: Obi Rope
- Replies (1)
|
 |
I am trying to add new control points to the Obi Rope in runtime using the same method shown in the docs, so that by using a Linecast line of sight I can identify points which the rope could lay through with enough length, and update that real time as the player moves through the level.
https://gyazo.com/12e11ed1fd2779065ce15c923196efef
This is what happens when I try to add a control point in the middle of the rope, and I cant figure out what in particular is going wrong. Heres the code:
Code: Vector3 example, tangentLS = new Vector3(0, 0, 0);
example = (startPoint.position + endPoint.position) / 2 + Vector3.up - transform.position;
tangentLS = (endPoint.position - startPoint.position).normalized;
path.InsertControlPoint(1, example, -tangentLS, tangentLS, Vector3.up, 0.1f, 0.1f, 1, 1, Color.white, "test");
path.FlushEvents();
I also can't find in the API of how to change the position of any control Point in runtime, which I think I need to know for the Cursor Mu and ChangeLength to behave correctly.
Any help is appreciated, thanks.
|
|
|
Rope for a water skier? |
Posted by: KRMGPC - 17-07-2021, 08:21 AM - Forum: Obi Rope
- Replies (1)
|
 |
If i wanted to make a high speed water skier racing around being pulled by a boat, would Obirope be a good fit?
I'd want to rope to sag when the boat slowed and then exert a jerking and pulling force on the skier when the boat accelerated.
It seems like it would be, I just don't know if it will perform well with constant changes of force being exerted as the boat's speed changes, pskier direction changes and both go up and down on waves.
|
|
|
ObiRope Moving Towards control Point |
Posted by: jabraman - 16-07-2021, 09:06 PM - Forum: Obi Rope
- Replies (1)
|
 |
Hello,
I use Obi Rope and I'm dynamically instantiating an ObiRope (2 control points) between 2 cube rigid bodies. During runtime, if I slightly move one end (the cube) the other end moves towards it like a magnet. How do I control that?
Thanks Admin!
|
|
|
|