- Home /
Is there a function for OnCollision, that detects drag?
Hi.
I was just thinking, is there a way to detect if the object is being dragged on the floor or another object? This would be useful for me so I can play a sliding sound when that happens. Is there a function like for example OnCollisionEnter() and OnCollisionStay(), that detects this? Or will I have to do it manually?
Thanks,
Luka.
OnCollisionEnter() works fine for me. I am just looking for some function that detects sliding/dragging on the floor. :)
You're going to have to write something in the OnCollisionEnter to detect a regular hit and movement.
O$$anonymous$$, I'll experiment with is for a while. Thanks!
Your answer
Follow this Question
Related Questions
Drag rigid body problem 0 Answers
Character Slowly sliding off platform 1 Answer
How do I lock a certain Axis on a drag object script? 0 Answers
How to move a tank? 1 Answer
touch move slide object 0 Answers