Quantcast
Channel: Questions in topic: "mass"
Viewing all articles
Browse latest Browse all 157

Why is gravity in script not working the same as when it is changed in the inspector?

$
0
0
Have roof on top of a building. Mass set to 1. Get input from keyboard to increase mass on roof so it should eventually collapse. When increasing mass in script I can increase by 100s and it never collapses, but in the editor set the mass to 5 and it collapses. Script looks like below and can see the script increasing he value in the inspector. Is there some type of Fresh or something that needs to be called to recalculate gravity on the object?

Viewing all articles
Browse latest Browse all 157

Trending Articles



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