Obi Official Forum
Help Metadata for particle interactivity - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Help Metadata for particle interactivity (/thread-793.html)



Metadata for particle interactivity - nrvllrgrs - 17-12-2018

I'm using VRTK to interact with an ObiCloth asset, allowing the player to grab and manipulate the cloth. I want the cloth only to be grabbable at specific particles. Is there a way to mark specific particles as Interactable and other particles as not? If not are there any suggestions how I could best accomplish this task?

This is different from unpinned versus pinned particles. One could have a non-interactable, unpinned particle OR a non-interactable, pinned particle OR a interactable, unpinned particle (I suppose one could have an interactable, pinned particle -- although I'm uncertain of its behavior).


RE: Metadata for particle interactivity - nrvllrgrs - 19-12-2018

The solution I have is to create an abstract MonoBehaviour called ObiMetadata. ObiMetadata has a custom editor that recreates the particle editor, but without the playback and pinning controls. Then I could extend ObiMetadata to create ObiInteractable, which would contain whether a particle is interactable. There could be future metadata, such as ObiExplosiveParticles (don't know what it does), that would simply extend from ObiMetadata and simply paint which particles are explosive. Any thoughts on this implementation?