27-05-2023, 01:46 PM
(27-05-2023, 12:24 PM)swancollective Wrote: Hey all,
I try to create the same behavior of the Particle Picker+Dragger (like in the Dragon sample scene) for a mobile app. But the touch input doesn't move the softbody.
How can I make it recognize my touch/finger pressing and dragging?
GPT-4 couldn't help me with this one!
Hi there,
Particle Picker uses Unity’s Input.mousePosition, which also works on touch screens - albeit it can only simulate a single finger on the screen. If you want multitouch support you have to implement that yourself using Unity’s input system.
I’d recommend asking on the Unity forums about how to use their input system, since that’s not part of Obi. Once you have it working, you can wire it to Obi’s particle API to control particle positions, velocities, etc.
Kind regards,