Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CollisionShape3D¶
向 CollisionObject3D 父级提供 Shape3D 的节点。
描述¶
向 CollisionObject3D 父级提供 Shape3D 并能够对其进行编辑的节点。可以为 Area3D 提供检测形状,也可以将 PhysicsBody3D 变为实体对象。
警告:非均匀缩放的 CollisionShape3D 可能无法按预期运行。请保持在所有轴上使用相同的缩放,需要时可以更改其 shape 资源代替。
教程¶
属性¶
|
||
方法¶
void |
|
void |
resource_changed ( Resource resource ) |
属性说明¶
bool disabled = false
禁用的碰撞形状对世界没有任何影响。
Shape3D shape
该碰撞形状拥有的实际形状。
方法说明¶
void make_convex_from_siblings ( )
将碰撞形状的形状设置为其所有凸面 MeshInstance3D 兄弟几何体的相加。
void resource_changed ( Resource resource )
*已废弃 * 请改用 Resource.changed 。