- Home /
Check if object is applying force to another object
Is there a simple way of doing this?
My player character is a Rigidbody. He thus has the ability to push around other Rigidbody objects in the game. I just want a quick way of triggering a "pushing" animation on the character. It seems like the best way would be to see if force is being transmitted specifically from one object (player) to something else, and if yes, play the animation. I don't want to just start playing the animation on collision or trigger, because I don't want the animation to play if the player is simply standing right next to the object without pushing it.
Check the player's velocity if the player is in contact with the object?
You're right of course. I was completely over-thinking this one. Duh.
Your answer
Follow this Question
Related Questions
AddForce doesn't work when used with velocity 3 Answers
Get force applied on a gameobject 2 Answers
Game objects sliding when frozen z-axis? 0 Answers
Simple Rigidbody / force question 3 Answers
How to add physics to an animation? 3 Answers