Question by
wilkysingh · Aug 13, 2016 at 09:13 AM ·
3d models
How to use Input.accelration for moving the board in labyrinth
How to use Input.acceleration for moving the board in labyrinth for mobile movement handling
below code snippet for the same // Physics.gravity = new Vector3 (Input.acceleration.x,Input.acceleration.y,Input.acceleration.z)*g; or //transform.Rotate (0,Input.acceleration.y,0);
Wen i uncommented the 2nd part the board keeps moving in certain direction indefinitely.I am still trying to fix it .If somebody can look into this i will be grateful to him/her.
Thanks,
Comment
Your answer