We will be out of office from December 23th to January 7th. During this time we'll check the forums less often, we'll be back at full throttle soon. Take care, Merry Christmas!
Hey Guys! I'm new to obi rope, but I have a problem in Unity editor rope is fine, but when I build for IOS, it's getting jittery on that part that connected to the roof.
04-06-2020, 11:45 AM (This post was last modified: 04-06-2020, 11:54 AM by josemendez.)
(04-06-2020, 11:36 AM)davidsedrakyan Wrote: Hey Guys! I'm new to obi rope, but I have a problem in Unity editor rope is fine, but when I build for IOS, it's getting jittery on that part that connected to the roof.
You've attached the rope inside a collider that is also set to collide with the rope. The collision tells the particle to be outside of the collider, but the attachment tells it to be inside. Since both conditions cannot be met simultaneously (for obvious reasons), the result is that the particle alternates between both (jittering). Depending on the exact order in which constraints are enforced (can change between platforms), the particle might enforce collision, attachment, or alternate between both.
You've attached the rope inside a collider that is also set to collide with the rope. The collision tells the particle to be outside of the collider, but the attachment tells it to be inside. Since both conditions cannot be met simultaneously (for obvious reasons), the result is that the particle alternates between both (jittering). Depending on the exact order in which constraints are enforced (can change between platforms), the particle might enforce collision, attachment, or alternate between both.
Ty, for a nice answer, you really have very-very good support!
That's awesome, Will give you a shootout on my upcoming game!
(04-06-2020, 01:34 PM)davidsedrakyan Wrote: Ty, for a nice answer, you really have very-very good support!
That's awesome, Will give you a shootout on my upcoming game!
And one last question, Can I get rope-shooting effect, like when rope is generated I need 2 points (start and end) to be in same position, and afer 1-sec I need second point to be moved to the point that I shooted.
(04-06-2020, 01:34 PM)davidsedrakyan Wrote: Ty, for a nice answer, you really have very-very good support!
That's awesome, Will give you a shootout on my upcoming game!
And one last question, Can I get rope-shooting effect, like when rope is generated I need 2 points (start and end) to be in same position, and afer 1-sec I need second point to be moved to the point that I shooted.
Doing this will the rope itself will be difficult, as the rope constraints themselves won't allow the rope to be collapsed in a single point at the beginning.
Imho, an easier approach would be to use a simple line renderer between two points, and then use Vector3.Lerp to move the second point to the attachment location over time.
(04-06-2020, 01:44 PM)josemendez Wrote: Doing this will the rope itself will be difficult, as the rope constraints themselves won't allow the rope to be collapsed in a single point at the beginning.
Imho, an easier approach would be to use a simple line renderer between two points, and then use Vector3.Lerp to move the second point to the attachment location over time.
Yeah, but I need a rope for gameplay, I need a shooting effect on grapple hook, and after that I need to hang on that rope.
(04-06-2020, 01:55 PM)davidsedrakyan Wrote: Yeah, but I need a rope for gameplay, I need a shooting effect on grapple hook, and after that I need to hang on that rope.
Of course, I meant showing the line renderer while shooting, and once it reaches the attachment point replacing it with the actual rope.
(04-06-2020, 02:02 PM)josemendez Wrote: Of course, I meant showing the line renderer while shooting, and once it reaches the attachment point replacing it with the actual rope.
yeah, that can be a solution, but changing line renderer to rope in real-time will be visible to the player, one more question, can I change rope point position on runtime?
Currently I'm changing point position on runtime, in the scene, without any script and unity crashes after changing point position.
(04-06-2020, 02:39 PM)davidsedrakyan Wrote: yeah, that can be a solution, but changing line renderer to rope in real-time will be visible to the player, one more question, can I change rope point position on runtime?
Currently I'm changing point position on runtime, in the scene, without any script and unity crashes after changing point position.
What do you mean by rope "point position"? Do you mean the attachment point?