【发布时间】:2016-06-15 20:06:12
【问题描述】:
ive got a problem with a player it has RigidBody2D,Box Collider2D
ive 搜索了 2 天,但没有使用 DontGoThroughThings 和许多其他东西的结果,或者可能做错了什么。我正在制作手机游戏并添加到脚本 Input.touches
foreach (Touch touch in Input.touches)
{
Vector3 newPosition = transform.position;
newPosition.y += touch.deltaPosition.y * speed * Time.deltaTime;
transform.position = newPosition;
}
它得到了速度,当我将手指移动到快速物体上时,它会直接离开相机视图并且他没有与对撞机发生碰撞
抱歉英语不好 谢谢你的建议 如果需要更多信息,我会提供详细信息。
【问题讨论】:
标签: c# unity3d unityscript unity5