using UnityEngine;
using System.Collections;
public class parabola : MonoBehaviour {
public float ShotSpeed = 10; // 抛出的速度
private float time; // A-B的时间
public Transform pointA; // 起点
public Transform pointB; // 终点
public float g = -10; // 重力加速度
Unity两点之间模拟抛物线运动
最新推荐文章于 2024-06-27 15:09:02 发布