RigidbodyInterpolation.Extrapolate 外插值
RigidbodyInterpolation.Extrapolate
Description描述
Extrapolation will predict the position of the rigidbody based on the current velocity.
外插将基于当前速度预测的刚体位置。
If you have fast moving objects this can lead to rigidbodies passing through colliders for one frame and then snapping back.
如果有一个快速移动到物体,这可能导致刚体穿越碰撞器一帧,然后回弹。
参见: Rigidbody.interpolation 变量
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
rigidbody.interpolation = RigidbodyInterpolation.Extrapolate;
}
}
rigidbody.interpolation = RigidbodyInterpolation.Extrapolate;
最后修改:2011年5月22日 Sunday 15:35