"Lan Unity Development Foundation Three" lesson 17 physical material

Source: Internet
Author: User

"Lan Unity Development Foundation Three" lesson 17 physical material

Recommended Video Lecturer Blog: http://11165165.blog.51cto.com/

First, Physical Material

If we want to have some physical properties such as elasticity, friction, and so on in the scene, we need to use the physical material.

Physical material can add friction and elasticity to an object

the physical material can only be added to a Collider on the object

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/87/D7/wKioL1fjRvqiWcVjAAt2I2jX5uM319.png-wh_500x0-wm_3 -wmp_4-s_4244871234.png "style=" Float:none, "title=" Unity engine Introductory Lesson 17 physical material 299.png "alt=" Wkiol1fjrvqiwcvjaat2i2jx5um319.png-wh_50 "/>






First, we create a Plane, use the material ball to dye the ground green, create a Sphere, use the material ball to dye the sphere red. and pull the Sphere into the air .

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/DA/wKiom1fjRwLDX32GAA5eEeRvRWE573.png-wh_500x0-wm_3 -wmp_4-s_3180853310.png "title=" Unity engine Introductory Lesson 17 physical material 521.png "style=" Float:none; "alt=" Wkiom1fjrwldx32gaa5eeervrwe573.png-wh_50 "/>

Sphere Collider

Material Property:None(physic Material)

None means that the resource type is a physical material (physic Material) , which is not yet assigned

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/DA/wKiom1fjRwrDGfkIAA8dTPrsGd8433.png-wh_500x0-wm_3 -wmp_4-s_1989303627.png "title=" Unity engine Introductory Lesson 17 physical material 772.png "style=" Float:none; "alt=" Wkiom1fjrwrdgfkiaa8dtprsgd8433.png-wh_50 "/>

Next in Create a physical material in Assets, name it a, and then drag the physical material onto the ball. Sphere Collider

of the the value of the Material becomes a.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/D7/wKioL1fjRxTj_AbCABLkfG9dY3k043.png-wh_500x0-wm_3 -wmp_4-s_2596421221.png "title=" Unity engine Introductory Lesson 17 physical material 1001.png "style=" Float:none; alt= wkiol1fjrxtj_ Abcablkfg9dy3k043.png-wh_50 "/>

The ball already has the elasticity and the friction force, in order to make the effect obvious, let us adjust the physical material below A. Select physical material A, we can see various parameters in the Properties panel.

Dynamic friction: Dynamic friction value range 0 to positive infinity default value 0.6

Static friction : Static friction value range 0 to positive infinity default value 0.6

Bounciness: Stretch 0--1, default 0 no elasticity

Friction Combine:Average calculates the average,Minimum calculates the minimum value,Multiply product,Maximum Maximum value

Bounce Combine:Average calculates the averagevalue,Minimum calculates the minimum,Multiply product, Maximum Maximum value

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/DA/wKiom1fjRxaiyiybAASOQwvISYY141.png-wh_500x0-wm_3 -wmp_4-s_1422426398.png "title=" Unity engine Introductory Lesson 17 physical material 1455.png "style=" Float:none; "alt=" Wkiom1fjrxaiyiybaasoqwvisyy141.png-wh_50 "/>


"Lan Unity Development Foundation Three" lesson 17 physical material

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.