30-01-2023, 08:45 AM
(This post was last modified: 30-01-2023, 08:50 AM by josemendez.)
(29-01-2023, 11:34 PM)Skcmmj Wrote: In the demo scene, I've disabled all the objects and even the 2d script, the hook still shoots and connects, But I don't understand how its even doing that.
Hi there,
There's no "2d" script in that specific scene, there's only a few platform cubes, a UI canvas, and a ObiSolver which contains the player and the hook.
You'll find a "Capsule" GameObject (which represents the player) inside the ObiSolver object. The capsule has a child named "Hook" which contains the "ExtendableGrapplingHook" sample component that controls shooting and anchoring the hook.
You can also just type "hook" in the scene hierarchy search box and it will lead you to the relevant object/scripts.
(29-01-2023, 11:34 PM)Skcmmj Wrote: Is there any readme?
There's a QuickstartGuide.pdf readme in the installation folder that points you to the manual:
http://obi.virtualmethodstudio.com/manual/6.3/
Also in Window->Obi->About you'll find links to both the manual and the API documentation:
http://obi.virtualmethodstudio.com/api.html
Note that Obi is a quite advanced physics engine, in case you're not familiar with C# scripting and/or basic physics concepts (such as forces/impulses/acceleration, mass/inertia, vector spaces, etc) you will likely have a very hard time using it since both are required.
(29-01-2023, 11:34 PM)Skcmmj Wrote: or instructions how to create this in first person?
Just make sure the ObiSolver is in 3D mode, then adjust object positions until you're happy. You might also need to modify the extendable hook sample script to match your use case.
kind regards,