跳转至

ConcavePolygonShape

继承

Shape

简要描述

凹多边形形状。

描述

凹多边形形状资源,可以将其设置给PhysicsBody或区域。通过输入一系列三角形来创建此形状。

注意:ConcavePolygonShape用于碰撞时,与诸如StaticBody的静态PhysicsBody节点一起使用,不适用于除Static以外的其他模式的KinematicBodyRigidBody

方法

返回值类型 方法名称
PoolVector3Array get_faces() const
void set_faces(faces: PoolVector3Array)

方法说明

  • get_faces get_faces() const

返回面(三角形数组)。


  • set_faces set_faces(faces: PoolVector3Array)

设置面(三角形数组)。