|
|
Rope grapplig hook |
Posted by: illustrator - 11-08-2020, 07:10 PM - Forum: Obi Rope
- Replies (1)
|
|
Hi
Is it possible to limit the grappling hook grab distance? If not could you improve the script Grappling hook script to allow this?
|
|
|
Creating a bungee cord between two objects |
Posted by: Bluerex - 10-08-2020, 05:11 PM - Forum: Obi Rope
- Replies (1)
|
|
Hi,
I am trying to create a bungee cord between two objects that can have opposite resistances. When one object pulls too far, the bungee spring effect snaps in and brings the two objects together using physics.
I've gotten reasonable results with Obi doing this, but nothing has felt perfect... I am pretty new to Obi Rope so I was just hoping someone could throw some me some pointers on how to achieve this:
- Connect a rope between two objects
- Have the rope length be finite
- When the rope is stretched too far, it 'snaps back' (instead of breaking)
- This causes the two objects to snap towards each other using physics
As a bonus, I'd like to play with the idea that the rope still acts as a cord between the two objects, but doesn't interact with other objects in the scene.
Thanks for the help!
|
|
|
How do I add length in runtime? |
Posted by: voodoo-bird - 10-08-2020, 02:56 PM - Forum: Obi Rope
- Replies (5)
|
|
How do I add/reduce length to a rope in runtime? The Youtube tutorials don't cover this.
I use Playmaker. Advise directly for this would be most helpful, but otherwise let me know the normal script/component way and I can figure it out from there.
Thanks.
|
|
|
How do I generate new ropes during runtime? |
Posted by: MLAnimation - 08-08-2020, 11:06 PM - Forum: Obi Rope
- Replies (1)
|
|
I've been looking here: http://obi.virtualmethodstudio.com/tutor...ctors.html for a guide on how to generate ropes during runtime. But I've run into an issue.
In the second section called "Creating Blueprints" when I use the code on the site, I get an error that I don't know how to fix.
Code: var blueprint = ScriptableObject.CreateInstance<ObiRopeBlueprint>();
It seems that unity doesn't understand what "blueprint" means. I put "using Obi;" at the start of my script as I needed a way to use the code found in "Creating a Solver" and it allowed that to read all the stuff used to generate a solver. But when it comes to creating a blueprint Unity just doesn't know what to do.
Does anyone have a solution too this? It's pretty important for my game to be able to generate ropes during the game, but it's just strange how the sample code listed on the official documentation doesn't seem too work.
|
|
|
Softbody falls through collider at times, is this a bug? |
Posted by: arrnav96 - 08-08-2020, 02:07 AM - Forum: Obi Softbody
- Replies (2)
|
|
So my softbody collision setup works well (Obi colliders in different phases). My scene setup is simple : A softbody object falls onto a table surface. The problem is, upon building to an android device, sometimes, the object just falls through the table, completely ignoring any collision with that table.
It happens randomly after 10-12 spawned softbodies - But once it starts happening, the collision ignoring doesn't stop. From thereon, any further softbodies spawned (completely fresh prefabs with newly instantiated solvers) stop interacting with the table at all. The game has to be closed and restarted for table collision to work again temporarily until problem repeats.
Now before you blame the obi collision phases, I have checked and double checked and all instantiated objects are on phases other than the table's phase at all times.
One thing I did note is due to quicker iteration times to debug, I normally use the Quick Enter Play mode feature in Unity a lot (which disables Domain Reload). But Obi collision completely fails instantly if Domain reload is disabled. If I enable Domain reload again, collisions seem to work again.
But regardless of Domain reload on or off in the editor, on the built APK, as mentioned above, the collisions start to fail after a point. It's unpredictable. To make sure, I rebuilt the APK with Domain reload On within the Editor, but same results.
Also, not sure if it's worth mentioning but I'm using different gravity values for the game. The main Physics system has a gravity value of -69.8 and the solver for each softbody is using -39.8. Could such values create issues?
I'm completely lost here, as the scene setup seems fine and I just don't understand why collisions randomly stop working after a point in builds for no reason. No scripts alter the Table's Obi Collider component or it's phase at any point. It behaves as if Domain Reload has been turned off after a point.
What is happening here? Is there any way to force collisions to work within build again? Maybe force domain reload on each spawn? Is domain reload even the culprit here? I don't see how, that's supposed to be within Editor only.
Please help
|
|
|
|