Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Metadata for particle interactivity
#1
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).
Reply
#2
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?
Reply