如何拍摄一个正在做圆周运动的物体

问题描述

所以我有一个物体在圆形路径上移动,敌人在这个圆圈的中心。我试图找出如何计算子弹的 shotingDirection。 Transform.position 是不够的,因为子弹会在最后一个已知的物体位置射出,所以我需要以这种方式预测/计算物体的位置,所以子弹会在前面飞,所以它们可以击中物体

假设我有这个信息:

Vector3 targetPosition = transform.position;
Vector3 shooterPosition = otherTransform.position;

Vector3 rotationAxis = Vector3.forward; // axis of circle

// in counter-clockwise degrees per second around axis
Vector3 targetAngularVelocity = 90f; 

Vector3 circleRadius = 5f; // in world units; 
Vector3 projectileVelocity = 5f; // in world units per second;

我想找到一个Vector3 shootDirection

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)