コード例 #1
0
 void FixedUpdate()
 {
     //Vector3 movement = new Vector3 (joystick.Horizontal () * Time.deltaTime, 0.0f, joystick.Vertical() * Time.deltaTime);
     //rb.AddForce (movement * speed);
     this.gameObject.transform.position += this.gameObject.transform.forward * Time.deltaTime * (speed * joystick.Vertical());
     this.gameObject.transform.position += this.gameObject.transform.right * Time.deltaTime * (speed * joystick.Horizontal());
 }