- Home /
Question by
SIKE.Inc · Aug 04, 2014 at 01:35 PM ·
javascriptjumpaccelerometeryaxis
trying to make a object in unity jump with accelerometer, not working.
This is the code i am currently using it would be great if someone could help me fogure out the problem. #pragma strict fixed Update () { var dir : Vector3 = Vector3.zero; if (dir.y = Input.acceleration.x){ rigidbody.AddForce (0, 10, 0); } }
Comment
Your answer
Follow this Question
Related Questions
How do I get my "dashing" animation to work? 1 Answer
CharacterMotor problem (Js) 1 Answer
Simple Jump script 1 Answer
Android Accelerometer - Change Orientation 0 Answers
Accelerometer question 1 Answer