# 求教 如何在一个物体旋转之前先得到他旋转之后的坐标位置呢？

**URL:** <https://forums.unrealengine.com/t/topic/78982>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** unreal-engine\
**Created:** [November 23, 2016, 3:46am UTC](https://forums.unrealengine.com/t/topic/78982 "2016-11-23T03:46:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![birllove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birllove](https://forums.unrealengine.com/u/birllove)\
**Post date:** [November 23, 2016, 3:46am UTC](https://forums.unrealengine.com/t/topic/78982/1 "2016-11-23T03:46:16Z")

</div>

也许问题比较拗口，我是需要在一个物体旋转之前先预先得到他旋转后的坐标位置，然后判断是否有物体重合。求大佬赐教相关方法。

---

<div class="post-metadata">

**Author:** ![Anonymous\_19bf9e6bf00df2917434d0a84179c287](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_19bf9e6bf00df2917434d0a84179c287](https://forums.unrealengine.com/u/Anonymous_19bf9e6bf00df2917434d0a84179c287)\
**Post date:** [November 28, 2016, 4:40am UTC](https://forums.unrealengine.com/t/topic/78982/2 "2016-11-28T04:40:22Z")

</div>

可以试试combines,判断重合的话可以用碰撞事件检测

---

<div class="post-metadata">

**Author:** ![dorgon\_chang](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dorgon_chang/32/1124941_2.png) [@dorgon\_chang](https://forums.unrealengine.com/u/dorgon_chang)\
**Post date:** [November 28, 2016, 9:19am UTC](https://forums.unrealengine.com/t/topic/78982/3 "2016-11-28T09:19:11Z")

</div>

如果你旋轉是用tween的機制的話，例如我這套plugin ([Horizon Tween Plugin in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/horizontween-plugin))

理論上可以就可以從tween event中得到alpha值0~1(分別代表起始跟終點)，代入這個值就可以在物體實際做旋轉之前就把數值算出

---

<div class="post-metadata">

**Author:** ![birllove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birllove](https://forums.unrealengine.com/u/birllove)\
**Post date:** [November 29, 2016, 8:50am UTC](https://forums.unrealengine.com/t/topic/78982/4 "2016-11-29T08:50:20Z")

</div>

请问combines 要怎么用呢？我查阅了api也不清楚如何使用。。

---

<div class="post-metadata">

**Author:** ![birllove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birllove](https://forums.unrealengine.com/u/birllove)\
**Post date:** [November 29, 2016, 8:52am UTC](https://forums.unrealengine.com/t/topic/78982/5 "2016-11-29T08:52:29Z")

</div>

目前我的实现方法就是直接通过三角函数计算坐标点，还有一个方法就是建个空不可见物体先模拟移动一下。。

---

<div class="post-metadata">

**Author:** ![birllove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birllove](https://forums.unrealengine.com/u/birllove)\
**Post date:** [November 29, 2016, 8:57am UTC](https://forums.unrealengine.com/t/topic/78982/6 "2016-11-29T08:57:59Z")

</div>

我这个用不到tween只是单纯的使用 addactorrotation来旋转。
