- position: 完全な瞬間移動
- MovePosition: ほぼ瞬間移動(中間位置を補間でき
る)
- velocity: その瞬間の速度を直接変更
- AddForce: その瞬間に力を加える

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveTest : MonoBehaviour {
Rigidbody RB;
Vector3 moveDirection;
void Start () {
moveDirection = new Vector3 (0, 1, 0);
RB = this.GetComponent <Rigidbody> ();
if (this.name == "Velocity")
// velocityの設定
RB.velocity = moveDirection * 1.0f;
else if (this.name == "AddForce")
// AddForceの設定
RB.AddForce(moveDirection * 50.0f);
}
void FixedUpdate() {
if (this.name == "Position")
// positionの設定
RB.position = RB.position + moveDirection * 0.02f;
else if (this.name == "MovePosition")
// MovePositionの設定
RB.MovePosition (RB.position + moveDirection * 0.02f);
} }