The invention provides an animation interaction method, device, computer storage medium and terminal. The animation interaction method includes: acquiring the motion track of a moving object; acquiring the detection space selected by the model; calculating the contact time point and contact position point of the moving object and the model according to the motion track and the selected detection space; and determining the contact time and contact position point of the moving object and the model. When the point is between, the relative position of the model and the contact point is generated, and the interactive animation of the model is generated according to the relative position. The invention can calculate the contact time point and contact position point of the moving object and the model according to the motion trajectory and the detection space, and generate the interactive animation of the model according to the relative position of the model and the contact position point, so as to make the interactive drawing of the model and the moving object more realistic and natural, and achieve the effect of optimizing the interactive animation. Increased user immersion.
【技术实现步骤摘要】
动画交互方法、装置、计算机存储介质和终端
本专利技术涉及计算机
,具体而言,本专利技术涉及一种动画交互方法、装置、存储介质和终端。
技术介绍
在电子游戏中,通常存在两个游戏模型的交互动作,例如在篮球游戏中,球员接球时,会在篮球进入球员身边一定范围后,根据篮球的进入位置选取一个对应的动作,以接住球;同时,篮球也以预定的轨迹运行;经过一段时间后,根据固定轨迹运行的球员手部与篮球接触,完成这次接球的动画交互。在实现上述动画交互的相关技术方案中,运动物体进入球员身边一定范围后,需要根据球员选用动作确定对应的运动轨迹,以使运动物体与球员手部接触;故,无论运动物体原本以什么速度、什么方向进入该范围后,都会变成预定的运行轨迹,以实现与球员手部的接触。这种生硬的实现方式,致使运动物体在被接住的过程中,还没有受到外力或还没有与球员发生接触就突然出现减速、加速或拐弯的视觉效果,无法与用户的现实生活感受一致,拉低了游戏动画的质感,影响了用户的沉浸感,降低了用户体验。
技术实现思路
本专利技术针对现有方式的缺点,提出一种动画交互方法、装置、计算机存储介质和终端,用以解决现有技术中存在的 ...
【技术保护点】
1.一种动画交互方法,其特征在于,包括:获取运动物体的运动轨迹;获取模型选定的检测空间;根据所述运动轨迹与所述选定的检测空间,计算所述运动物体与所述模型的接触时间点和接触位置点;确定在所述接触时间点时,所述模型与所述接触位置点的相对位置;根据所述相对位置,生成所述模型的交互动画。
【技术特征摘要】
1.一种动画交互方法,其特征在于,包括:获取运动物体的运动轨迹;获取模型选定的检测空间;根据所述运动轨迹与所述选定的检测空间,计算所述运动物体与所述模型的接触时间点和接触位置点;确定在所述接触时间点时,所述模型与所述接触位置点的相对位置;根据所述相对位置,生成所述模型的交互动画。2.根据权利要求1所述的方法,其特征在于,所述获取模型选定的检测空间,包括:获取模型对应的若干个预设动画,每个所述预设动画对应一个检测空间;根据每个所述预设动画的交互时间确定对应检测空间的检测时间;在所述检测时间内,将所述运动轨迹经过的检测空间作为选定的检测空间;所述根据所述相对位置,生成所述模型的交互动画,包括:根据所述相对位置,将所述选定的检测空间对应的预设动画进行修正,将修正后的预设动画作为所述交互动画。3.根据权利要求2所述的方法,其特征在于,所述在所述检测时间内,将所述运动轨迹经过的检测空间作为选定的检测空间,包括:在所述检测时间内,若所述运动轨迹经过的检测空间的数量大于一个,从所述运动轨迹经过的检测空间中,随机确定一个检测空间作为选定的检测空间,或将优先级别最高的检测空间作为选定的检测空间。4.根据权利要求2所述的方法,其特征在于,所述模型为人物模型,所述人物模型面部前方预设范围内的空间区域被分割为若干个子空间,每个子空间对应一个所述检测空间,所述预设范围为连续的空间范围。5.根据权利要求2所述的方法,其特征在于,所述根据所述相对位置,将所述选定的检测空间对应的预设动画进行修正,将修正后的预设动画作为所述交互动画,包括:根据所述相对位置,修正所述预设动画的起始时间、播放速率和动画轨迹,将修正后的预设动画作为...
【专利技术属性】
技术研发人员:周浩,李超赞,
申请(专利权)人:广州要玩娱乐网络技术股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。