/Godot 3.2


Inherits: Shape < Resource < Reference < Object

Concave polygon shape.


Concave polygon shape resource, which can be set into a PhysicsBody or area. This shape is created by feeding a list of triangles.

Note: when used for collision, ConcavePolygonShape is intended to work with static PhysicsBody nodes like StaticBody and will not work with KinematicBody or RigidBody with a mode other than Static.


PoolVector3Array get_faces ( ) const
void set_faces ( PoolVector3Array faces )

Method Descriptions

PoolVector3Array get_faces ( ) const

Returns the faces (an array of triangles).

void set_faces ( PoolVector3Array faces )

Sets the faces (an array of triangles).

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.