0
我嘗試在Android設備上運行滾球遊戲Unity 3d示例,球粘在側壁上,當球與側壁接觸時球也非常緩慢地移動。幫我解決這個問題?在android unity 3d中粘在側壁上的球?
這裏是移動球
Screen.sleepTimeout = SleepTimeout.NeverSleep;
curAc = Vector3.Lerp(curAc, Input.acceleration-zeroAc, Time.deltaTime/smooth);
GetAxisV = Mathf.Clamp(curAc.y * sensV, -1, 2);
GetAxisH = Mathf.Clamp(curAc.x * sensH, -1, 2);
Vector3 movement = new Vector3 (GetAxisH, 0.0f, GetAxisV);
rigidbody.AddForce(movement * speedAc*2f);
在此先感謝