Skip to main content

Examples

We include one drivable car and an example map on which the deformation can be tested.

Left: Vehicle while in editor (only skeletal mesh is visible)
Right: Vehicle while playing (Deformable Mesh is visible)

Location: /Plugins/DeformableStaticMesh/Content/Example/ChaosVehicleExample/

The example car is a ChaosVehicle (AWheeledVehiclePawn) that uses a placeholder skeletal mesh. This is NOT necessary, but because the skeletal mesh is only used for collision it (most of the time) does not matter how it looks. For more information see: Chaos Vehicle.

There is a special material override that overrides the default material of the mesh with a deformation material (/DeformableStaticMesh/Content/Materials/Example/M_Deformable_TestVehicle). This makes dents even more visible and enables hazard lights. In addition to that there's also a protection box that prevents the driver side (left) from deforming too much.

Other than that it's really just a simple ChaosVehicle with basic movement and three special shortcuts:

  • R: Reset Vehicle (position)
  • E: Reset Deformation
  • Z: Toggle Scratchmask (= deformation material)

Here are some useful links for ChaosVehicles in general: