03-06-2021, 09:13 AM
(02-06-2021, 07:26 PM)mayaeraky Wrote: Hi there, I am trying to grab my obi cloth in VR using steamVR. I tried attaching the cloth to the hand after any contact between the hand and any particle of the cloth using contact event handler and obi particle attachment but there is a huge gap between the hand and the particles attached. They’re attached correctly movement wise but they are not overlapping which makes it look weird.
Thank you
Hi there,
Without any details and no code it's hard to tell what could be wrong. My guesses are either:
1.- There's a collider conflicting with the attachment, preventing the particle from moving to its attached position.
2.- The attachment offset is wrong (the position of the particle at the time of attaching doesn't match the intended attachment pos).
Also note that ObiContactGrabber does pretty much this: exposes a Grab() method that attaches particles to the collider in contact with them.