ConcavePolygonShape
Inherits: Shape < Resource < Reference < Object
Concave polygon shape.
Description
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.
Tutorials
Methods
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–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_concavepolygonshape.html