欧美xxxx做受欧美gay,老色鬼久久av综合亚洲健身,大地资源网在线观看免费动漫 ,国产精品久久二区二区,岳乱妇乱第24集

  • 您的位置:首頁 > 新聞動態(tài) > Unity3D

    unity3d給物體增加扭矩力

    2019/4/9??????點擊:
    using UnityEngine;
    using System.Collections;
    
    public class AddTorqueExample : MonoBehaviour
    {
        public float amount = 50f;
        
        
        void FixedUpdate ()
        {
            float h = Input.GetAxis("Horizontal") * amount * Time.deltaTime;
            float v = Input.GetAxis("Vertical") * amount * Time.deltaTime;
            
            rigidbody.AddTorque(transform.up * h);
            rigidbody.AddTorque(transform.right * v);
        }
    }