← 返回函数库

touches

Context 内置函数 已实现

语法

touches(...)

示例

attr x = touches(...)

🎨 3D 预览 — 接触

@StartRule
Lot --> primitiveCube(4, 4, 4)
        print(touches(shape1, shape2))
        color(0.6, 0.7, 0.8)