Deform Mesh

This component is used in example scene(s) such as:

29_CGDeformMesh_BarbedWire, 29bis_CGDeformMesh_Railway.

Deforms one or more meshes so they follow a Path or Volume. Use this when you have a mesh asset you want to bend along a spline, for example a fence, a pipe, or a cable.

 Mesh deformation in action

See example scenes 29 and 29bis for a working setup with a barbed wire mesh and a railroad.
Name Type Description
VMesh[] Array of VMesh The meshes to deform
Path or Volume Path or Volume The curve to deform along
Spots[] Array of Spots (Optional) Placement locations for each mesh instance
Name Type Description
VMesh[] Array of VMesh The deformed meshes
Spots[] Array of Spots Updated placement locations for the deformed meshes

Controls how the mesh maps onto the path.

Stretch To End

When enabled, the mesh is stretched to fill the full length of the path.

Controls how the mesh is scaled along the path.

Mode

  • Simple - scale by a single uniform value
  • Advanced - scale using curves for precise control

Reference

Determines over which range the scale is applied:

  • Self - scale applies over the path's active range
  • Source - scale applies over the path's total length

Uniform Scaling

When enabled, the same scale is applied to both the X and Y axes of each cross-section (local X and Y).

Scale

The base scale value to apply.

Offset

(Advanced mode only)

The scale is applied starting at this offset along the path.

Multiplier

(Advanced mode only)

A curve multiplying the base scale value.