- Home /
Making an object collide but transparent
Hello,
I am making a plat-former 2D game where a character runs into a cloud of gas it deducts health points. I have the collision working but in order to make it work the gas has to have a Rigidbody 2D and when my player runs into the gas it moves away from him like it has mass. The lowest you can set the mass too on the Rigidbody is 0.0001. Any help or suggestions would be greatly appreciated.
Thanks, SwampMan
If you don't want the gas to move you can just use "is kinematic" on the rigidbody. Is that what you want?
http://docs.unity3d.com/ScriptReference/Rigidbody2D-is$$anonymous$$inematic.html
Try setting the collider to IsTrigger. This way you prevent rigidbodys to move, or use Is$$anonymous$$inematic as HammerCar said.
Your answer
Follow this Question
Related Questions
unity2D colliders not working properly,,Unity2D Colliders don't seem to be working HELP PLEASE! 0 Answers
Detect 2D GameObjects when "Colliding" with each other without RB and collider. 1 Answer
Physics.OverlapSphere() not working after using pool of objects 0 Answers
Reset Rigidbody2D rotation after collision 2 Answers
My marble (Player/Gameobject) goes through the "play board" (gameobject). Why? 1 Answer