Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Add force in the direction analog stick in pointing

$
0
0
Hello, I need the the player to have force added in the direction the analog stick in pointing. For example, Move the stick up, force is added forward, move the stick right, force is added to the right. Right now with this code `CameraRigRB.AddRelativeForce(ObjectForMovementDirection.transform.right * touchpadvalueLeft.x + ObjectForMovementDirection.transform.forward * touchpadvalueLeft.y * Skispeed, ForceMode.Force);` Force is only added forwards and backwards. Would anyone know why this is?

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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