Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle Dragger
#1
Hi,

I was trying to find more tutorials of Obi and found this one:

https://www.youtube.com/watch?v=kNKNP7YMBEY 

I can't understand his language and in the video he uses a "Obi Particle Dragger" and make a very interesting dragging moving.

I tried to find the 'obi particle dragger' on the official manual and obi API documentation, and its description is quite simple, I even couldn't find some description about how it works.

And I also find that there are many classes like 'Particle Picker', 'Particle Attachment', 'Stitcher' and so on,

Is there any official manual, introduce or tutorials to these classes? They look like quite useful.

Thank you
Reply
#2
Hi there!

Particle Attachment is a core class in Obi, and has its own manual page:
http://obi.virtualmethodstudio.com/tutor...ments.html


The picker/dragger and the stitcher are just utility classes, which for the time being aren't documented anywhere (none of the sample scripts are). However they're very simple to use:

ObiParticlePicker iterates over all particles in a solver when you click on the screen, and "picks" the closest one to the mouse cursor. It will fire picked/held/drag/release  events that you can subscribe to in order to perform custom logic.

ObiParticleDragger subscribes to the picker's events, and implements a simple spring to drag the picked particle around.

ObiStitcher lets you specify two actors, and create "stitches" between their particles. Stitched particles will be constrained to each other, so in a sense the stitcher works like an attachment between particles.

They're all implemented using Obi's particle API, that lets you get/set any particle property (positions, velocities, masses, etc):
http://obi.virtualmethodstudio.com/tutor...icles.html
Reply
#3
(08-02-2021, 08:52 AM)josemendez Wrote: Hi there!

Particle Attachment is a core class in Obi, and has its own manual page:
http://obi.virtualmethodstudio.com/tutor...ments.html


The picker/dragger and the stitcher are just utility classes, which for the time being aren't documented anywhere (none of the sample scripts are). However they're very simple to use:

ObiParticlePicker iterates over all particles in a solver when you click on the screen, and "picks" the closest one to the mouse cursor. It will fire picked/held/drag/release  events that you can subscribe to in order to perform custom logic.

ObiParticleDragger subscribes to the picker's events, and implements a simple spring to drag the picked particle around.

ObiStitcher lets you specify two actors, and create "stitches" between their particles. Stitched particles will be constrained to each other, so in a sense the stitcher works like an attachment between particles.

They're all implemented using Obi's particle API, that lets you get/set any particle property (positions, velocities, masses, etc):
http://obi.virtualmethodstudio.com/tutor...icles.html

OK I see, thank you very much, I think I could use them to make some interesting ideas Lengua
Reply