Add force in the direction analog stick in pointing
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?
Your answer
Follow this Question
Related Questions
How to stop a sphere that is using GetAxis from moving? (Roll-A-Ball Tutorial) 0 Answers
Enemy watches player and shoots but bullets will not project.. 0 Answers
Rotate AddForce around a point? 0 Answers
Cube rolling problem (rotation problem) 1 Answer
AddForce rigidbody 2d not moving object 2 Answers