Collision Detection

Collision
Detection

  Collision Detection是Rigidbody中的一个属性。所以显然Collision
Detection指定的类型只在Rigidbody之间才有用。

  

1、Collision Detection用来干什么?

  Used to prevent fast moving objects from passing through other
objects without detecting collisions.

  用于阻止快速移动的objects因没有检测到collision而导致穿透other objects的情况。

2、Collision Detection类型有3种,分别有什么作用?

  1)Discrete

    Use Discreet collision detection against all other colliders in the
scene. Other colliders will use Discreet collision detection when testing for
collision against it. Used for normal collisions (This
is the default value
).

    若本物体使用Discrete,则其它物体与本物体碰撞时,会使用Discrete来检测碰撞。这是默认值。

  2)Continuous

    Use Discrete collision detection against dynamic colliders
(with a rigidbody) and continuous collision detection against static
MeshColliders (without a rigidbody). Rigidbodies set to Continuous Dynamic will
use continuous collision detection when testing for collision against this
rigidbody. Other rigidbodies will use Discreet Collision detection. Used for
objects which the Continuous Dynamic detection needs to collide with. (This has
a big impact on physics performance, leave it set to Discrete, if you don‘t have
issues with collisions of fast objects)

  3)Continuous Dynamic

    Use continuous collision detection against objects set
to Continuous and Continuous Dynamic Collision. It will also use continuous
collision detection against static MeshColliders (without a rigidbody). For all
other colliders it uses discreet collision detection. Used for fast moving
objects.

3、第2节的规则可以整理成下表:

  

4、综上所述,Collision Detection的目的是用来设置碰撞类型,以避免发生子弹窗纸的问题。

参考:.../Unity.app/Contents/Documentation/Documentation/Components/class-Rigidbody.html

  

时间: 2024-10-11 06:42:52

Collision Detection的相关文章

hdoj 2436 Collision Detection

Collision Detection Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1207    Accepted Submission(s): 367 Problem Description In physical simulations, video games and computational geometry, colli

hidden node and exposed node problem

Exposed node problem In wireless networks, theexposed node problem occurs when a node is prevented from sending packets to other nodes because of a neighboring transmitter. Consider an example of 4 nodes labeled R1, S1, S2, and R2, where the two rece

碰撞器与触发器[Unity]

请看原帖,移步:Unity3d碰撞检测中碰撞器与触发器的区别 要产生碰撞必须为游戏对象添加刚体(Rigidbody)和碰撞器,刚体可以让物体在物理影响下运动.碰撞体是物理组件的一类,它要与刚体一起添加到游戏对象上才能触发碰撞.如果两个刚体相互撞在一起,除非两个对象有碰撞体时物理引擎才会计算碰撞,在物理模拟中,没有碰撞体的刚体会彼此相互穿过. 物体发生碰撞的必要条件: 两个物体都必须带有碰撞器(Collider),其中一个物体还必须带有Rigidbody刚体. 在unity3d中,能检测碰撞发生的

第二章 TCP/IP 基础知识

? TCP/IP ?transmission control protocol and ip internet protocol 是互联网众多通信协议中最为著名的. ? 2.2 TCP/IP 的标准化 2.2.2 TCP/IP 标准化精髓 TCP/IP 协议始终具有很强的实用性. 相比于TCP/IP ,OSI 之所以未能达到普及,主要原因在于未能尽早的制定可行性较强的协议.未能提出应对技术快速更新的协议以及没有能及时进行后期的改良的方案. 2.2.3 TCP/IP 规范 --RFC 那些需要标准

《Python编程快速上手 让繁琐工作自动化》pdf

<div id="article_content" class="article_content tracking-ad" data-mod="popu_307" data-dsm="post"> <p><br></p><p>下载地址:<a target="_blank" href="https://page74.ctfile.co

Bounding Volume Hierarchy BVH in OpenCASCADE

Bounding Volume Hierarchy BVH in OpenCASCADE [email protected] Abstract. Bounding Volume Hierarchy(BVH) organizes geometric objects in the tree based on spatial relationships. Each node in the tree contains an axis-aligned bounding box of all the obj

HashMap的工作原理

这是一节让你深入理解hash_map的介绍,如果你只是想囫囵吞枣,不想理解其原理,你倒是可以略过这一节,但我还是建议你看看,多了解一些没有坏处. hash_map基于hash table(哈希表).哈希表最大的优点,就是把数据的存储和查找消耗的时间大大降低,几乎可以看成是常数时间:而代价仅仅是消耗比较多的内存.然而在当前可利用内存越来越多的情况下,用空间换时间的做法是值得的.另外,编码比较容易也是它的特点之一. 其基本原理是:使用一个下标范围比较大的数组来存储元素.可以设计一个函数(哈希函数,也

CCNA题库之四

A network interface port has collision detection and carrier sensing enabled on a shared twisted pair network. From this statement, what is known about the network interface port? A. This is a 10Mb/s switch port. B. This is a 100Mbs switch port. C. T

计算机各层含义解释

计算机各层网络协议 应用层: (典型设备:应用程序,如FTP,SMTP ,HTTP) DHCP(Dynamic Host Configuration Protocol)动态主机分配协议,使用 UDP 协议工作,主要有两个用途:给内部网络或网络服务供应商自动分配 IP 地址,给用户或者内部网络管理员作为对所有计算机作中央管理的手段.实 现即插即用连网. BOOTP (BOOTstrapProtocol) 引导程序协议/ 自举协议,使用UDP 来使 一个无盘工作站自动获取配置信息.静态的配置协议