0
我试图动画一个简单的矩形形状,以便它在某个方向上缩放尺寸。实际上,我制作了一个从A点延伸到B的矩形。最终目标是将其设置为从A处开始并将其变换为B所需的长度。如何使用Helix Toolkit制作简单的3D形状动画?
I对于一般的动画来说很新,所以这个过程对我来说似乎很挑剔。
现在我:
Creating a vector between the start and end point
Finding the 8 corners of the rectangle along that vector
Creating 2 triangles for each face of the rectangle
Rendering the shape
这一切正在使用MeshBuilder
对象,并逐个添加三角形和点完成。
所以,我创建棱镜的方式并不能真正帮助我做什么。理想情况下,我想,我只是在点之间创建一个简短的棱镜,然后在动画中将矩形扩展为正确的长度。
有什么想法?