ConcavePolygonShape3D

Inherits: Shape3D < Resource < RefCounted < Object

Concave polygon shape.

Description

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

Note: When used for collision, ConcavePolygonShape3D is intended to work with static PhysicsBody3D nodes like StaticBody3D and will not work with CharacterBody3D or RigidDynamicBody3D with a mode other than Static.

Properties

bool

backface_collision

false

Methods

PackedVector3Array

get_faces ( ) const

void

set_faces ( PackedVector3Array faces )

Property Descriptions

  • bool backface_collision

Default

false

Setter

set_backface_collision_enabled(value)

Getter

is_backface_collision_enabled()

If set to true, collisions occur on both sides of the concave shape faces. Otherwise they occur only along the face normals.

Method Descriptions

Returns the faces (an array of triangles).


Sets the faces (an array of triangles).