我正在尝试制作一个大猩猩标签运动系统,但我有一个错误:
GetDrag does not exist in the current context我的代码只写了一个简单的"float GetDrag()“。
发布于 2022-03-24 20:23:57
做这个
float GetDrag()
{
Vector3 handVelocity = (target.localPosition -
_previousPosition) / Time.fixedDeltaTime;
float drag = 1 / handVelocity.magnitude + 0.01f;
drag = drag > 1 ? 1 : drag;
drag = drag < 0.03f ? 0.03f : drag;
_previousPosition = transform.position;
return drag;
}发布于 2022-10-07 05:37:25
大猩猩标签的创建者在麻省理工学院的许可下开源了移动代码
https://stackoverflow.com/questions/71011610
复制相似问题