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.
Tutorials¶
Properties¶
|
Methods¶
get_faces ( ) const |
|
void |
set_faces ( PackedVector3Array faces ) |
Property Descriptions¶
bool backface_collision
Default |
|
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¶
PackedVector3Array get_faces ( ) const
Returns the faces (an array of triangles).
void set_faces ( PackedVector3Array faces )
Sets the faces (an array of triangles).