摘要:
对2d物体施加一个y方向的力rigibody2d rg rg.addForce(new vector2(0,100f)) 可以自己填入数值,也可以使用默认的方向 vector.left vector.right vector.up vector.down 物体的四个方向移动,但是斜向速度会把两个方向 阅读全文
posted @ 2022-01-22 14:35
villefort
阅读(68)
评论(0)
推荐(0)
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AI : MonoBehaviour {undefined public GameObject player; pu 阅读全文
posted @ 2022-01-22 14:31
villefort
阅读(92)
评论(0)
推荐(0)

浙公网安备 33010602011771号