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

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:http://feedback.unity3d.com/forums/15792-unity.

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.

主站蜘蛛池模板: 临清市| 靖西县| 枣阳市| 江城| 农安县| 文安县| 嘉定区| 临猗县| 沙田区| 宜君县| 云南省| 若尔盖县| 会同县| 丰顺县| 龙泉市| 井陉县| 大英县| 金塔县| 台中县| 旅游| 美姑县| 七台河市| 房山区| 巫山县| 无锡市| 监利县| 南宫市| 湖南省| 沙河市| 台州市| 楚雄市| 宜川县| 凉城县| 平邑县| 昌都县| 遂昌县| 石首市| 沂水县| 绥中县| 满城县| 珲春市|