Unity3D
来源:互联网 发布:银河证券量化交易软件 编辑:程序博客网 时间:2024/05/29 19:15
转自RigidBody vs Collider
You can indeed have a collider with no rigidbody. If there's no rigidbody then Unity assumes the object is static, non-moving. Unity does not bother testing for collisions BETWEEN static objects. As you can imagine, this is very efficient if you have lots of scenery the player can bump into.
So the purpose of having a kinematic rigidbody, rather than no rigidbody, is to turn on collision detection between this object and all other colliders in the scene (even the static ones.) Effectively you are letting Unity know that this object moves around, so Unity will then do collision-detection between it and everything else.
(If you had a game with only two objects in it, and both move kinematically, in theory you would only need a rigidbody on one of them, even though they both move. I haven't tried it. But now imagine three such objects- you'd have to have rigidbodies on two of them. So in practice you'll usually just put rigidbodies on everything that both moves and collides.)
- Unity3D
- Unity3D
- Unity3D
- Unity3D
- unity3d
- Unity3D
- Unity3D
- Unity3D
- UNITY3D
- Unity3D
- unity3d
- unity3D
- Unity3D
- Unity3d
- Unity3D
- unity3D
- unity3D
- Unity3D
- 教你使用Git 命令版
- Hadoop二次排序及MapReduce处理流程实例详解
- 方差与偏差---二
- matlab函数编译成库供C++调用(非常详细)
- 在系统级修改Ubuntu默认python版本
- Unity3D
- 第八章 使用数据处理函数
- 算法导论读书笔记(23)最小生成树
- Linux misc 设备驱动
- 使用vue.js简单的tab选项卡效果
- C# 实现欧几里得距离(Euclidean Distance Score)
- Python 读入文件报错
- Linux下ln链接命令详解
- 后台逻辑判断案例:选择列表是否是同一张卡