Obi Official Forum
Play swinging sound? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Play swinging sound? (/thread-540.html)



Play swinging sound? - zhuchun - 18-04-2018

Hi, I have a steel chain attached to an iron ball and want to play a swinging sound when it's moving. Is there anything like HingeJoint.Velocity to handle this?


RE: Play swinging sound? - josemendez - 18-04-2018

(18-04-2018, 08:54 AM)zhuchun Wrote: Hi, I have a steel chain attached to an iron ball and want to play a swinging sound when it's moving. Is there anything like HingeJoint.Velocity to handle this?

You can get per particle velocities using Oni.GetParticleVelocities. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html