官术网_书友最值得收藏!

Understanding the gravity of the situation

Unity's built-in physics engine is ready for you to hook into it, but it will ignore your Game Objects unless you opt in by adding a component like Rigidbody to your Game Object. Rigidbody is so-named to differentiate it from soft body dynamics, which are calculations that actually distort and deform your meshes. Soft bodies like cloth are partially supported in Unity 3, after numerous developers requested the feature. You can view and vote on upcoming Unity features here:

Rigidbody dynamics treat all of our objects as if they're made of wood, steel, or very stale cake. Collider components tell Unity when Game Objects crash into each other. As both our Ball and our Paddle already have sphere and cube-shaped colliders surrounding their meshes, the missing link is the Rigidbody component. By adding a Rigidbody component to the Ball, we include the Ball in Unity's physics calculations. The result is hot ball-on-paddle action.

主站蜘蛛池模板: 尼玛县| 大冶市| 松江区| 曲阜市| 浠水县| 龙海市| 应城市| 太康县| 乳山市| 昌邑市| 保定市| 搜索| 新源县| 富平县| 武宁县| 安义县| 昌江| 高要市| 临江市| 谢通门县| 彭阳县| 宁化县| 梓潼县| 沽源县| 雷州市| 吉林市| 瓦房店市| 义马市| 精河县| 龙胜| 阳高县| 缙云县| 荔浦县| 措勤县| 永善县| 宜兴市| 凤山市| 辛集市| 虎林市| 朝阳市| 多伦县|