问题描述
我想让剑绑定到玩家身上,但是当我按下Play并移动角色时,剑只是像一个浮点值一样四处移动,然后重新回到其原始位置(0,0)。我还想添加一个剑偏距。
代码:
public GameObject Player;
public GameObject Self;
public Vector3 SwordOffset;
void FixedUpdate ()
{
Self.transform.position = Player.transform.postion;
//I have not added the offset yet.
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)