diff options
author | VolTer <mew.pur.pur@abv.bg> | 2023-04-28 22:59:03 +0200 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2023-05-20 03:25:26 +0200 |
commit | e3d0da404fd46bef48a816e27897c81140d46aa9 (patch) | |
tree | 2dac4b85467d0b9f7ea9967736a7322a3c8e4647 /doc/classes/CollisionPolygon3D.xml | |
parent | c80a2b4fe99dcd0bba6fc24ed2748b1474b24448 (diff) | |
download | redot-engine-e3d0da404fd46bef48a816e27897c81140d46aa9.tar.gz |
Overhaul the top sections of the class reference (Physics classes)
Diffstat (limited to 'doc/classes/CollisionPolygon3D.xml')
-rw-r--r-- | doc/classes/CollisionPolygon3D.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/classes/CollisionPolygon3D.xml b/doc/classes/CollisionPolygon3D.xml index b6bf0ce141..382471d0f0 100644 --- a/doc/classes/CollisionPolygon3D.xml +++ b/doc/classes/CollisionPolygon3D.xml @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="UTF-8" ?> <class name="CollisionPolygon3D" inherits="Node3D" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> - Node that represents a 3D collision polygon, given by the thickening of a 2D polygon in the local XY plane along the local Z axis. + A node that provides a thickened polygon shape (a prism) to a [CollisionObject3D] parent. </brief_description> <description> - Provides a 3D collision polygon to a [CollisionObject3D] parent, by thickening a 2D (convex or concave) polygon in the local XY plane along the local Z axis. The 2D polygon in the local XY plane can be drawn in the editor or specified by a list of vertices. That 2D polygon is thickened evenly in the local Z and -Z directions. - This node has the same effect as several [ConvexPolygonShape3D] nodes, created by thickening the 2D convex polygons in the convex decomposition of the given 2D polygon (but without the overhead of multiple nodes). - [b]Warning:[/b] A non-uniformly scaled CollisionPolygon3D node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change its [member polygon]'s vertices instead. + A node that provides a thickened polygon shape (a prism) to a [CollisionObject3D] parent and allows to edit it. The polygon can be concave or convex. This can give a detection shape to an [Area3D] or turn [PhysicsBody3D] into a solid object. + [b]Warning:[/b] A non-uniformly scaled [CollisionShape3D] will likely not behave as expected. Make sure to keep its scale the same on all axes and adjust its shape resource instead. </description> <tutorials> </tutorials> |