Quantcast
Channel: Questions in topic: "weight"
Viewing all articles
Browse latest Browse all 136

Rigidbody and colliders, "weight" problem

$
0
0
Hello, I'll quickly describe my problem: the spaceship is a rigidbody in a box collider. When I apply a collider, the ship becomes "heavier" (I don't know if it's normal, but I accept it). I added a script that enable a "shield" around the ship when a key is pressed, so the ship doesn't receive damage when it is active. The shield has a collider, obviously, and it's instantiated as child of the "shield generator" (an empty object, child of the ship). When I activate the shield, the ship gets heavier for the same reason written above, but the weird thing is that when the shield goes away (it lasts X seconds), the ship stays heavy. At first I tought the collider of the shield was still attached to my ship, but I tested it just colliding against an object and I'm sure there's no collider.. So, why my ship is still that heavy? This problem is driving me crazy, I can't figure out how to fix it. Thanks in advance ;)

Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>