Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Helper functions/commands
#4
(10-11-2025, 06:38 PM)kurm1s0 Wrote: Thanks, but I'm thinking more like something that when I click a button it creates the whole obi scene, rope, all the points between two game objects. 

You'll need quite a lot of code for that. This involves creating a solver component, creating a blueprint asset, generating control points for the blueprint, generating particle groups, creating a ObiRope component and feeding the blueprint to it, then assigning the blueprint to the rope and placing the rope in the solver. Finally, create attachments that bind the particle groups to the desired objects.

There's many sample scenes and scripts included with the asset (Obi/Samples/ folder) that do similar things ("RopeNet" or "GrapplingHook" scenes may be useful). You may be able to reuse some of the sample code, but how much ultimately depends on the specifics of your goal. You'll also need to understand how the code works to adapt it to your case.

Obi assumes you're comfortable programming (see our FAQ):

Quote:Is scripting / coding required to use Obi?

For anything except the bare basics, yes. Obi is written in HPCS (high performance C#) and HLSL, and it exposes a C# API. Obi deals with hundreds of particles and thousands of constraints every frame. These are exposed to you, the user, so learning how to write performant code is a prerequisite.

if you're not a programmer, I'm afraid the learning curve will be quite steep: writing C# is a must in order to do anything beyond the bare basics. Maybe you can hire a programmer to do this for you?

kind regards
Reply


Messages In This Thread
Helper functions/commands - by kurm1s0 - 10-11-2025, 06:03 PM
RE: Helper functions/commands - by josemendez - 10-11-2025, 06:07 PM
RE: Helper functions/commands - by kurm1s0 - 10-11-2025, 06:38 PM
RE: Helper functions/commands - by josemendez - 10-11-2025, 06:47 PM