gpt4 book ai didi

How do 3D models physics mechanics work (how is it setup to behave a certain way)(3D模型物理力学是如何工作的(它是如何设置为以某种方式运行的))

转载 作者:bug小助手 更新时间:2023-10-25 09:10:14 27 4
gpt4 key购买 nike



trying to make a program that uses 3D models and some physics integration, but I dont understand how a 3D model is made to have certain specific properties related to physics, such as collision.

试图制作一个使用3D模型和一些物理集成的程序,但我不明白3D模型是如何使其具有与物理相关的某些特定属性的,例如碰撞。


A complex example, let’s say i have a model of a 3D person. How can I make the 3D model have physics properties such as collision for a point somewhere on the body? e.g: on a hand, the point between the index finger and middle finger (between the two knuckles), how would the model have physics properties like collision for this specific spot on the 3d person models hand setup?

一个复杂的例子,假设我有一个3D人的模型。如何才能使3D模型具有物理属性,例如身体上某个点的碰撞?例如:在一只手上,食指和中指之间的点(两个指节之间),模型如何在3D Person Models手部设置中的这个特定点具有碰撞等物理属性?


As simpler example, a 3D basketball. How does the model/program know which way to “react” when for example bouncing the ball and then some x,y point on the basketball hits the ground, how does it know how to react to hitting that one point on the ground (e.g ball spins left when bouncing back up as a result, ball spins rights when bouncing back up as a result, ball bounces up spinning diagonally, etc…

作为更简单的例子,3D篮球。模型/程序如何知道在弹出球后篮球上的某个x,y点落在地上时应该以哪种方式作出反应,它如何知道如何对击中地面上的某一点作出反应(例如,球因反弹而向左旋转,因反弹而向右旋转,因此而反弹时向右旋转,球向上弹起,沿对角线旋转,等等…


更多回答

You need to clarify what you are actually looking for: The question is tagged unreal-engine5, but as far as I know, UE5 has a integrated physics engine that you just need to configure. If you are looking for the theory behind a physics engine, that's too broad for SO. There are whole books written just about collision detection, and that's just the first step to handling correct collision responses.

你需要澄清你真正想要的是什么:这个问题被标记为虚幻引擎5,但据我所知,UE5有一个集成的物理引擎,你只需要配置它。如果你正在寻找物理引擎背后的理论,那就太宽泛了。有一整本书都是关于碰撞检测的,这只是处理正确碰撞响应的第一步。

I am trying to make a 3d mini game on the web. Not sure if it's different from Unreal, but this question really came up when I was browsing for 3d models I can buy, for example on Sketchfab. I dont know how these 3d models are setup to have physics properties, like what I described in OP. Same for building my own 3d models with a library such as three.js or babylon

我正试着在网上制作一款3D迷你游戏。我不确定它是否与虚幻不同,但这个问题确实是在我浏览可以买到的3D模型时出现的,例如在Sketchfab上。我不知道这些3D模型是如何设置成具有物理属性的,就像我在OP中描述的那样。与使用Three.js或巴比伦等库构建我自己的3D模型相同

Usually, 3D models don't come with physics properties attached. They depend to much on the physics engine being used and of the coupeling between the physics subsystem and the rendering subsystem. Most rigid body physics engines aren't really calculating the physics on the actual mesh, but on a simplified collision body (a sphere, box, capsule). I highly recommend picking a physics engine of your choice, start with a simple testcase like a bouncing ball, then continue from there when you got an impression of what you need.

通常,3D模型不附带物理属性。它们在很大程度上取决于所使用的物理引擎以及物理子系统和渲染子系统之间的耦合。大多数刚体物理引擎实际上并不是在实际网格上计算物理,而是在简化的碰撞实体(球体、长方体、胶囊)上计算物理。我强烈建议你选择一个物理引擎,从一个简单的测试用例开始,比如一个弹跳球,然后当你对你需要的东西有了一个印象后,再从那里继续。

Basically that means if I want a 3d model of a person to also have physics property on some specific part on the body, such as between two fingers, the 3d engine/physics engine software that made it needs to have that feature/suipport

基本上,这意味着如果我想要一个人的3D模型在身体上的某个特定部位也具有物理属性,例如在两个手指之间,制作它的3D引擎/物理引擎软件需要具有该功能/支持

优秀答案推荐
更多回答

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com