- Home /
How to detect collisions, but add 0 force to objects
Particles can have collisions, but once they collide, they either have their speed dampened, so they fall, or they bounce off of objects without exerting any forces on them, but recently, unity gave us the amazing option to apply forces on objects, but that's irrelevant.
My issue is with clothing. I want to give the players in the game the ability to customize their clothes, but I don't want those clothes to apply any sort of forces on the player, and they normally would since they use bones, but if I was somehow able to have these objects act like particles in a way they would detect collisions so that they don't clip with the player, walls, or other players, it would totally fix my issue.
Is this possible? I don't want to use triggers for such detection since the clothes wouldn't wrap around objects they collide with. I should also mention the bones have a little Mass that I also don't want to have it add weight to the player.
Thank you for reading!
Answer by Chik3r · Apr 14, 2018 at 08:41 PM
Disable the collision between the "Player body" layer and the "Clothes" layer. How to disable collision between layers: Go to Edit -> Project Settings -> Physics and disable the collision.
"in a way they would detect collisions so that they don't clip with the player, walls, or other players"
$$anonymous$$y apologies if I were unclear. I wouldn't want to lose the cool effect of the cloth colliding with the player nor want it to look bad by going through and clipping. Thank you for your answer! But unfortunately, it won't work for my case.
Your answer
Follow this Question
Related Questions
Character Controller meets Rigidbody 1 Answer
How can i make particles push back the player on collision? 1 Answer
How to add physics to an animation? 3 Answers
How to get Satisfying Collision Physics 1 Answer
Realistic kinettic force? 0 Answers