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

Mass not effecting torque

$
0
0
Hi all, I'm making a 2D space game where the heavier the ship gets, the harder it is to move/steer. While the linear movement is effected as the rigidbody's mass increases, the angular acceleration is not. Here's my code: rb.AddTorque((Input.GetAxis("Turn") * tmpEnginePower * rateOfTurn), ForceMode2D.Force); With or without the ForceMode2D argument the same thing happens. The same rate of torque rotates the rigidbody at the same rate no matter what its mass is. Different torque values do change the angular acceleration but the mass doesn't. Changing the torque value based on the vehicle's mass seems like a really backwards way to achieve the behaviour I want. Angular drag works as expected but that's not what I'm after as the game is in space, hence no drag. What am I missing?

Viewing all articles
Browse latest Browse all 157

Trending Articles



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