2D刚体模拟(包含HIP文件)2D Rigid Body Simulation (HIP File Included)

Hi again!

This is a 2d rigid body simulation which I did in two approaches:

1_ By using a quaternion to manipulate transform matrix on primitive intrinsic attribute of packed objects. In this case deforming attribute should has value of 2 in order to have correct collision in Bullet solver.

2_ In second approach, hard constraints are used to limit the rotation axis only on Z axis.

This method is much faster than first approach.

Also a glue constraint is added on barriers to have similar simulation like Angry Birds.

The best.

HIP file is ready for download:

https://drive.google.com/file/d/1zeUePld4zCvGab4hW9XIVJXSC7GINlJk/view?usp=sharing
你好,我们又见面了!

这是一个二维刚体仿真,我用两种方法做了:

1_通过使用四元数来处理打包对象的原始内在属性上的变换矩阵。在这种情况下,变形属性的值应为2,以便在子弹解算器中进行正确的碰撞。

2_在第二种方法中,硬约束仅用于限制Z轴上的旋转轴。

这种方法比第一种方法快得多。

此外,在障碍物上添加胶水约束以进行类似“愤怒的小鸟”的模拟。

 

 

 

资源下载
下载价格免费
支付后等待5秒返回本页网盘提取码5555 若有疑问联系微信wisheswell邮箱1215704323@qq.com收购教程/工程
网站注释:6月1号晚上21:40 新网站-【用户账户-vip资格-余额不变】6月1号晚上21:40之前的所有访问网站归档xyz.ae-houdini.com

评论0

客服微信wisheswell
没有账号?注册  忘记密码?
豫ICP备2020029649号-1