首页 > 其他分享 >11-Rigid_body_engine

11-Rigid_body_engine

时间:2024-03-13 15:00:13浏览次数:29  
标签:11 body force center will Rigid buoyancy boat tensor

our physics engine is now capable of simulating full rigid bodies in full 3D.The spring forces and other force generators will work with this approach, but the hard constraintswill not.

A Flight Simulator

As the aricraft's surfaces move at different angles througth the air,the proportion of each kind of force can change dramaticlly.

The Aerodynamic Tensor

To model the aerodynamic forces properly is very complex.To make our life easier I will use a simplification: the“aerodynamic tensor.” The aerodynamic tensor is a way of calculating the total force that a surface of the airplane is generating based only on the speed that the air is moving over it.
The tensor is a matrix: a 3 × 3 matrix, exactly as we used for the inertia tensor. We start with a wind speed vector and transform it using the tensor to give a force vector:

\[f_{a} = Av_{w} \]

where \(f_{a}\) is the resulting force, A is the aerodynamic tensor, and \(v_{w}\) is the velocity of the air.In practice three tensors are sometimes needed, to represent the two extremes plus the “normal” position of the control surface.

The Aerodynamic Surface

The force generator is created with an aerodynamic tensor, and it is attached to the rigid body at a given point. This is the point at which all its force will be felt.

A Sailing simulator

Originally the force directly acted on the particle. This is fine for representing balls or other regular objects. On a real boat, however, the buoyancy does two jobs: it keeps the boat afloat, and it keeps the boat upright(保持船支的竖直不倾斜). In other words, if the boat begins to lean over (say a gust of wind catches it), the buoyancy will act to right it.
This tendency to stay upright is a result of the torque component of the buoyancy force. Its linear component keeps the boat afloat, and its torque keeps it vertical. It does this because, unlike in our particle force generator, the buoyancy force doesn’t act at the center of gravity.

A submerged part of the boat will have a center of buoyancy, as shown in figure. The center of buoyancy is the point at which the buoyancy force can be thought to be acting. Like the buoyancy force itself, the center of buoyancy is related to the displaced water. The center of mass of the displaced water is the same as the center of buoyancy that it generates. The volume of water displaced depends on the shape of the submerged object, so does the center of buoyancy. The farther the center of buoyancy is from the center of mass, the more torque will be generated and the better the boat will be at righting itself.If the center of mass is above the center of buoyancy, then the torque will apply in the opposite direction and the buoyancy will act to topple the boat. So how do we simulate this in a game? We don’t want to get into the messy details of the shape of the water being displaced and finding its center of mass. Instead we
can simply fix the center of buoyancy to the rigid body. In a real boat the center of buoyancy will move around as the boat pitches and rolls and a different volume of water is displaced. Most boats are designed so that this variation is minimized, however. Fixing the center of buoyancy doesn’t look odd for most games. It shows itself mostly with big waves, but can be easily remedied, as we’ll see later

标签:11,body,force,center,will,Rigid,buoyancy,boat,tensor
From: https://www.cnblogs.com/ultramanX/p/18070666

相关文章

  • [LeetCode][110]平衡二叉树
    题目110.平衡二叉树给定一个二叉树,判断它是否是平衡二叉树。示例1:输入:root=[3,9,20,null,null,15,7]输出:true示例2:输入:root=[1,2,2,3,3,null,null,4,4]输出:false示例3:输入:root=[]输出:true提示:树中的节点数在范围[0,5000]内-104<=Node.......
  • 在 Windows 10/11 上哪里可以找到已删除的文件
    “在Windows10/11上哪里可以找到已删除的文件?”。事实上,这个问题有3种可能的答案。1.它们在回收站里。2.它们被删除并可以使用文件恢复工具恢复,例如奇客数据恢复。3.它们被永久删除,您永远找不到它们。尝试最好的已删除文件恢复软件来查找您需要的文件。否则,您可能会永久......
  • win11 安装make (gnumake)
    在vscode安装一个插件时,需要用到make工具,因此安装make,虽然根据https://zhuanlan.zhihu.com/p/630244738 可以在https://gnuwin32.sourceforge.net/packages/make.htm直接下载编译好的windows下的makesetup安装包,但是我嫌弃它版本太低了,所以找了个安装最新版的方式。参考:ht......
  • 3.11-3.17周报
    寒假训练营2D这道题的题意很简单,有k张技能牌,每张技能牌可以把前\(a_i\)张牌放到最下边,消耗\(b_i\)的花费,现在我们需要的牌在从下往上的第k张,要变到第一张,花费最小的方式。建图的思路就有了,边权就是花费,也就是最短路问题,但是边很灵活,每个点都能建出m条边。点击查看代码voidso......
  • 安装JDK11+Tomcat10.0.1+eclipse-jee-2023-12-R-win32-x86_64 配置
    第一步,先双击启动软件:改一下名称:C:\Users\Administrator\eclipse-workspace变成:C:\ProgramFiles\JavaJava:为什么JSP文件要放到SpringBoot工程的src/main/webapp目录下参考文章:https://blog.csdn.net/netyeaxi/article/details/100928105为了看到更具体的页面,可以做个性化......
  • 3.11-3.17
    天梯赛选拔第二场:L2-1:队列模拟voidsolve(){intn,k;cin>>n>>k;stack<int>q,box;for(inti=1;i<=n;i++){intx;cin>>x;q.push(x);}stack<int>res;vector<int>ans......
  • 20240311 大模型快讯
    //社区生态//零一万物自研全导航图向量数据库。零一万物宣布推出基于全导航图的新型向量数据库笛卡尔(Descartes),已包揽权威榜单ANN-Benchmarks6项数据集评测第一名。//语言大模型//清华发布大模型长文本理解方法InfLLM。InfLLM在没有引入额外训练的情况下,利用一个外部......
  • 111
          ......
  • 升级Windows 11 专业版升级密钥永久使用
    Windows11专业版是Windows11的商业版本,专为中小型企业和组织设计。它提供了一些家庭版和专业版所没有的功能,例如:安全性:设备加密:使用BitLocker或BitLocker设备加密保护您的设备和数据。身份验证:使用WindowsHelloforBusiness以多种方式登录您的设备,包括面部识别......
  • 升级Windows 11 专业版升级密钥永久使用
    Windows11专业版是Windows11的商业版本,专为中小型企业和组织设计。它提供了一些家庭版和专业版所没有的功能,例如:安全性:设备加密:使用BitLocker或BitLocker设备加密保护您的设备和数据。身份验证:使用WindowsHelloforBusiness以多种方式登录您的设备,包括面部识别......