Physics Material

Physics
Material

1、 The Physics
Material is used to adjust friction and bouncing effects of
colliding objects.

  Physicx Material是Collider的一个属性,用于设置摩擦系数和反弹系数。

  

2、具体参数如下:

  
































Dynamic Friction The friction used when already moving. Usually a value
from 0 to 1. A value of zero feels like ice, a value of 1 will make it
come to rest very quickly unless a lot of force or gravity pushes the
object.
Static Friction The friction used when an object is laying still on a
surface. Usually a value from 0 to 1. A value of zero feels like ice, a
value of 1 will make it very hard to get the object moving.
Bounciness How bouncy is the surface? A value of 0 will not bounce.
A value of 1 will bounce without any loss of energy.
Friction Combine How the friction of two colliding objects is combined.
Average The two friction values are averaged.
Minimum The smallest of the two values is used.
Maximum The largest of the two values is used.
Multiply The friction values are multiplied with each other.
  When two bodies are in contact, bounciness and friction modes are
applied individually to each agent. So, when body A has mode Average and body B has mode Multiply,
then A is going to behave according to average parameters and B according
to multiplied parameters.
Bounce Combine How the bounciness of two colliding objects is combined.
It has the same modes as Friction Combine Mode

3、Detail

  Friction is the quantity which prevents surfaces from sliding off
each other. This value is critical when trying to stack objects. Friction comes
in two forms, dynamic and static. Static
friction is used when the object is lying still. It will
prevent the object from starting to move. If a large enough force is applied to
the object it will start moving. At this point Dynamic
Friction will come into play. Dynamic
Friction will now attempt to slow down the object while in
contact with another.

4、和Meterial一样,可以创建Physics Meterial,如下图:

  

参考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/Components/class-PhysicMaterial.html

时间: 2024-10-09 23:45:56

Physics Material的相关文章

【Unity】11.5 物理材质 (Physics Material)

分类:Unity.C#.VS2015 创建日期:2016-05-02 一.简介 物理材质 (Physics Material) 用于调整碰撞对象的摩擦力和反弹效果. 二.创建物理材质 要创建物理材质 (Physics Material),请从菜单栏选择[资源 (Assets)] -> [创建 (Create)] -> [物理材质 (Physics Material)].然后将物理材质 (Physics Material) 从[工程视图(Project View)]拖动到场景中的碰撞体(Coll

【Unity】11.3 基本碰撞体(箱体、球形、胶囊、网格)

分类:Unity.C#.VS2015 创建日期:2016-05-02 一.简介 碰撞组件(Collider) 是另一种必须随刚体 (Rigidbody) 添加的组件,以便允许它和其他组件发生碰撞.或者说,如果仅仅是两个刚体 (Rigidbody) 相互碰撞,则物理引擎不会计算碰撞,除非这两个对象又都附加了碰撞组件 (Collider). 无碰撞组件 (Collider) 的刚体 (Rigidbody) 在物理模拟过程中只会穿过彼此. 二.基本概念 1.添加碰撞体的方法 首先选中一个游戏对象,然后

创建场景——02地形编辑器

学习笔记适合新手,如有错误请指正.?号处也请各位指点下,谢谢. 在Project视图中点击鼠标右键>Import Package>Environment,弹出资源导入窗口 点击Import按钮,导入环境资源宝 点击导航菜单栏>GameObject>3D Object>Terrain菜单项创建地形 在Scene视图中通过鼠标滚轮调整视距,按住鼠标右键进入观察模式,在该模式下用鼠标调整视角,键盘WASD移动 升降地形工具 选中地形工具栏中的第一栏Raise/Lower Terra

【Unity】11.1 角色控制器 (Character Controller)

分类:Unity.C#.VS2015 创建日期:2016-05-02 一.简介 角色控制器(Character Controller)主要用于对第三人称或第一人称游戏主角的控制.如果要创建类人角色,可使用角色控制器 (Character Controller).这可以是第三人称游戏 (Third Person Platformer) 中的主角色.FPS 射击者或任何敌人角色. 二.基本概念 第三人称游戏中的这些控制器由于无规律可循,所以无法遵守固定的物理规则,例如,让某辆车每小时跑 90 英里,

【Unity】第11章 第三人称角色控制器和碰撞体

分类:Unity.C#.VS2015 创建日期:2016-05-02 一.简介 第三人称视角控制器涉及的相关概念有: 1.刚体(Rigidbody). 2.碰撞体(Collider).包括球体碰撞体(Sphere Collider).箱体碰撞体(Box Collider).网格碰撞体(Mesh Collider).物理材质(Physics Material).铰链关节(Hinge Joint).弹簧关节(Spring Joint)等. Unity内置了 NVIDIA PhysX 物理引擎.要控制

物理引擎——03物理材质

学习笔记适合新手,如有错误请指正.?号处也请各位指点下,谢谢. 物理材质Physics Material,当碰撞器交互时,他们的表面需要模拟材质的属性 虽然碰撞器的形状在碰撞时不会改变,但是它们的摩擦力和弹性可以用物理材质来设置 Create>Physics Material

[原]Unity3D深入浅出 - 物理引擎之碰撞体(Colliders)

通常Colliders会与Rigidbody一起使用,没有添加碰撞体的刚体会彼此相互穿过. 常用碰撞体有以下几种: Box Collider:盒子碰撞体,是一个立方体外形的碰撞体,可调整为不同大小的长方体,一般可用作门,墙及平台等,也可用于交通工具的外壳.最适合的是使用在盒子和箱子上. Is Trigger:触发器,勾选后可用于触发事件,且将被物理引擎所忽略. Material:材质,采用不同的Physics Material决定了碰撞体与其他对象的交互形式. Center:碰撞体在对象局部坐标

[原]Unity3D深入浅出 - 之碰撞体(Colliders)

通常Colliders会与Rigidbody一起使用,没有添加碰撞体的刚体会彼此相互穿过. 常用碰撞体有以下几种: Box Collider:盒子碰撞体,是一个立方体外形的碰撞体,可调整为不同大小的长方体,一般可用作门,墙及平台等,也可用于交通工具的外壳.最适合的是使用在盒子和箱子上. Is Trigger:触发器,勾选后可用于触发事件,且将被物理引擎锁忽略. Material:材质,采用不同的Physics Material决定了碰撞体与其他对象的交互形式. Center:碰撞体在对象局部坐标

Polygon Collider 2D

The Polygon Collider 2D component is a collider for use with 2D physics. The collider's shape is defined by a freeform edge made of line segments, so you can adjust it to fit the shape of the Sprite graphic with great precision. Note that this collid