Handle Depth In Mesh Generation

This commit is contained in:
2025-11-27 18:39:24 -05:00
parent 1c8e3d7314
commit 32c5e8fa9b
3 changed files with 149 additions and 149 deletions

View File

@@ -31,7 +31,7 @@ func _init(vector_indexes: PackedInt32Array, vector_points: PackedVector2Array,
elif extrude_direction == DestructableWall.ExtrudeDirection.RIGHT:
for point in vector_points:
self._v_points.append(Vector3(0, point.y, point.x))
depth_vector = -Vector3.RIGHT * depth
depth_vector = Vector3.LEFT * depth
elif extrude_direction == DestructableWall.ExtrudeDirection.UP:
for point in vector_points:
self._v_points.append(Vector3(point.x, 0, point.y))