Quantcast
Channel: Answers for "Changing rigidbody drag based on deviation of rigidbody heading to its direction"
Browsing all 6 articles
Browse latest View live

Answer by qJake

You'd probably want to do something like this:// Set this to be the "maximum drag", i.e. when // the object is facing the wrong direction completely (rotation 180). float maxDrag = 1; // Offset angle...

View Article



Answer by Ryder

Ok, here is the answer... Thanks to Flynn in forums for the assist!All you need is to get the degress of deviation from the oriention of the object to its velocity...var dif =...

View Article

Answer by qJake

You'd probably want to do something like this:// Set this to be the "maximum drag", i.e. when // the object is facing the wrong direction completely (rotation 180). float maxDrag = 1; // Offset angle...

View Article

Answer by Ryder

Ok, here is the answer... Thanks to Flynn in forums for the assist!All you need is to get the degress of deviation from the oriention of the object to its velocity...var dif =...

View Article

Answer by qJake

You'd probably want to do something like this:// Set this to be the "maximum drag", i.e. when // the object is facing the wrong direction completely (rotation 180). float maxDrag = 1; // Offset angle...

View Article


Answer by Ryder

Ok, here is the answer... Thanks to Flynn in forums for the assist!All you need is to get the degress of deviation from the oriention of the object to its velocity...var dif =...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images