Skip to main content

Examples

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

Chaos Vehicles is optional

The core deformation component does not require Chaos Vehicles. To load or play the Chaos vehicle examples, enable the Chaos Vehicles plugin yourself and restart the editor first. If vehicle Blueprint parent classes are missing, do not save those incorrectly loaded Blueprints; enable the dependency and reload them.

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: