打孔时模拟沙袋 [英] Simulating a sand bag when punched

查看:117
本文介绍了打孔时模拟沙袋的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个打沙袋的人的动画(想象一下游戏侠盗猎车手)

我遇到的问题是如何模拟沙袋摆动的时候打了。

问题不在图形中,我在进行3D模拟时没有问题,我有点困惑的是如何创建挥动功能。



想象一下,当你在中央平衡点和角度为0度时打沙袋时,沙袋只会以z坐标向后和向前移动。随着更多的挥杆完成,摆动范围将减少。我已经创建了一个数学函数,但它并不是很灵活。

我看看sinc()函数但它不是对称的(如果你看的话)对于维基百科的sinc(),您可以在图形中看到范围不对称; -0.2 - > 1.0)



任何人都可以创建一个模拟函数那?一个灵活的功能,其初始范围可以根据冲击的力量进行修改。

I''m creating an animation of a guy hitting a sandbag (Imagine the game Grand Theft Auto)
what I''m having problem with is how to simulate the swinging of the sandbag when punched.
The Problem is not in graphical, i have no problem in doing the 3d simulation, what i''m a bit confused is how to create the waving function.

Imagine when you hit a sandbag at its central balance point and at angle 0degree, the sandbag will only move backward and forward in z coordinate. The range of swinging will decrease as more swing have been completed. I''ve created a math function of that,but it''s not really flexible.
I''ve look at the sinc() function but it''s not symmetric(If you look for sinc() at wikipedia, you can see in the graphics that the range is not symmetric; -0.2 -> 1.0)

Can anyone make a function to simulate that? a flexible function where the initial range can be modified dependng on the power of punch.

推荐答案

嗯,你为这个问题挑选了一个难题。解决问题的最简单方法是使用一个条形,如音叉或自由条:

http://hyperphysics.phy-astr.gsu.edu/hbase/music/barres.html [ ^ ]



然而沙子是非线性的所以获得一个精确的价值可能会有点困难。



我可以继续谈论这个,但我不确定你想要它的准确度..
Well, you curtainly picked a difficult topic for the question. The easiest way of threating the problem is to use a bar, like a tuning fork or a free bar:
http://hyperphysics.phy-astr.gsu.edu/hbase/music/barres.html[^]

However sand is nonlinear so it might be a little more difficult to get an excact value.

I could go on and on about this, but Im not sure how accurate you want it..


这篇关于打孔时模拟沙袋的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆