Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Scripts don't work as expected,

$
0
0

Ok So,I have a GameScript class which is derived by another class WheelScript ,it is meant to apply torque to a rigidbody in different directions depending upon the key pressed, However the result to this is that one of the rigid body rotates fine but the other one doesnt (Say the right wheel rotates but the left doesnt turn or even if it does ,it doesnt move with the same angular velocity as the first one) I am posting my code here ,Please Help

Base Class:

public class GameScript : MonoBehaviour
{
public static GameScript instance;
protected float Force;

protected virtual …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



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