提交 cbb97b1d 编写于 作者: 开发游戏的老王's avatar 开发游戏的老王

9.无尽水管子滚滚来

上级 91ce0df1
{
"node_id": "game-439aa38024ab4dd98c188b5577ec7a63",
"keywords": [],
"children": [],
"export": [
"learn.json"
],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
{
"type": "code_options",
"author": "hello_tute",
"source": "learn.md",
"notebook_enable": false,
"exercise_id": "ee8733182987449b91608cb7a6ea8e96"
}
\ No newline at end of file
# 5种碰撞体以及RigidBody的4种模式
请先阅读本节讲义⬇
[《5种碰撞体以及RigidBody的4种模式》](https://orzgame.blog.csdn.net/article/details/104822436)
使用实例:[《碰撞和碰撞检测的简单实例(RigidBody2D与Area2D碰撞)》](https://orzgame.blog.csdn.net/article/details/104824983)
使用实例:[《碰撞和碰撞检测的简单实例(RigidBody2D与StaticBody2D碰撞)》](https://orzgame.blog.csdn.net/article/details/104804192)
在Godot引擎构造的游戏世界中,如果想构造一个能够挡住子弹但自身不会移动的“墙”,应该将“墙”的RigidBody设置为如下哪种模式?
## 答案
`StaticBody`
## 选项
### A
`KinematicBody`
### B
`RigidBody`
### C
`Area`
{
"node_id": "game-7dd736ff4d2e43bfa002ad16964a7ea8",
"keywords": [],
"children": [],
"export": [
"learn.json"
],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
{
"type": "code_options",
"author": "hello_tute",
"source": "learn.md",
"notebook_enable": false,
"exercise_id": "a5bdb0b8efce48ce8e225fd2996702e3"
}
\ No newline at end of file
# 无尽水管子滚滚来(一)
请先阅读本节讲义⬇
[《无尽水管子滚滚来(一)》](https://orzgame.blog.csdn.net/article/details/104730795)
在构造一对水管子的时候,为什么要按照下图所示的结构构造?
![水管子的场景结构](https://img-blog.csdnimg.cn/20200318183720887.png#pic_center)
## 答案
让上下水管以及中间的得分区都作为Pipe节点的子节点,这样只要控制Pipe节点的移动其它节点也就可以同步移动了
## 选项
### A
并没有特别的原因,仅仅是为了好看
### B
这是Godot引擎的要求,必须要这样做
### C
这样比较好看
...@@ -101,6 +101,26 @@ ...@@ -101,6 +101,26 @@
"keywords_forbid": [], "keywords_forbid": [],
"group": 0 "group": 0
} }
},
{
"[知识点]5种碰撞体以及RigidBody的4种模式": {
"node_id": "game-439aa38024ab4dd98c188b5577ec7a63",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
},
{
"无尽水管子滚滚来": {
"node_id": "game-7dd736ff4d2e43bfa002ad16964a7ea8",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
} }
], ],
"keywords_must": [], "keywords_must": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册