How to simulate damage due to friction
In certain games where players can control combat vehicles, there are things such as mounted guns, turrets, or some other sort of weapon that is fixed in place, but has free or limited rotation.
I was thinking of implementing these types of weapons into my game, but I was thinking of implementing a consequence of trying to force a gun to aim beyond its physical limit. I already have conceptualized impact damage, such as slamming the barrel into other objects. However, the area of this concept that I haven't figured out is the less sudden cases; grinding, scraping, and general friction. I have a few ideas on how this could work, such as using opposing forces between rigidbodies in contact with each other, but I need to know if there are easier or better ways of doing it.
Any recommendations?
Your answer
Follow this Question
Related Questions
Is there an easy way to make a RigidBody2D collide with only one other RigidBody2D? 1 Answer
How to make instantiated rigidbodies continue moving the in the same direction as destroyed object? 1 Answer
RiigidBody2D.AddForce() isnt working at all. 0 Answers
Have one object apply a force to another. 0 Answers
2d Moving Platforms 1 Answer